Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

xamarin.forms - Compilation error on compiling Xamarin Forms iOS project

We are getting the following error on compiling our Xamarin Forms iOS project through App Center Build environment.

We are struggling to understand the root cause of this error. More so because this project was compiling earlier. The only changes we have done (since the previous successfully compilation) is update to the latest version of Xamarin Forms library as well as latest version of Visual Studio.

MTOUCH : error MT2101: Can't resolve the reference 'System.Void UIKit.UIDatePicker::set_PreferredDatePickerStyle(UIKit.UIDatePickerStyle)', referenced from the method 'System.Void Xamarin.Forms.Platform.iOS.DatePickerRendererBase1::OnElementChanged(Xamarin.Forms.Platform.iOS.ElementChangedEventArgs1<Xamarin.Forms.DatePicker>)' in 'Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. [/Users/runner/work/1/s/USR_Practice/USR_Practice.iOS/USR_Practice.iOS.csproj]

Since we do not have a MAC, we depend on Appcenter for the iOS builds. Is this is a problem with our project/code OR with Appcenter. How can we resolve it?

question from:https://stackoverflow.com/questions/65866328/compilation-error-on-compiling-xamarin-forms-ios-project

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

AppCenter Build has an option to tell the version of Xamarin iOS SDK to be used for build. This needs to be updated manually everytime a new Xamarin iOS SDK build is out. Else it continues to build with the previously/last set Version.

Once we update the AppCenter Build to build with latest SDK, all errors are resolved.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...