build error cant resolve the reference

tati2211tati2211 Member

hi! Im new in xamarin.ios and i have the problem: then i set "link SDK only" in build options, i have following error after build:
Can't resolve the reference 'System.Drawing.RectangleF', referenced from the method 'UIKit.UIImage MobileClient.iPhone.System.Utils::GetColoredImage(System.String,UIKit.UIColor)' in 'System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
If i set link behavior as "Dont link", ipa is builded succesfully, but after pushing it in app store i have "ITMS-90338: Non-public API usage" error after review.
I use the latest version of visual studion an Xcode. What may be reason of this ussue?

Tagged:

Answers

  • PriyaRastogiPriyaRastogi INMember ✭✭✭

    @tati2211 ,Try to restore your nuget and Update your Xamarin forms nuget.

  • ColeXColeX Member, Xamarin Team Xamurai
    edited July 8

    Some simple suggestions

    1.Upgrade Xamarin.Forms and all the packages to the latest .
    2.Delete bin and obj folder , rebuild
    3.Restart visual studio

    If the error persists, ,share us the build log along with verbosity enabled (i.e. -v -v -v -v in the Additional mtouch arguments) .

Sign In or Register to comment.