繁体   English   中英

编译 Xamarin Forms iOS 项目时出现编译错误

[英]Compilation error on compiling Xamarin Forms iOS project

我们在通过 App Center Build 环境编译 Xamarin Forms iOS 项目时遇到以下错误。

我们正在努力了解此错误的根本原因。 更是如此,因为这个项目是在更早的时候编译的。 我们所做的唯一更改(自上次成功编译以来)是更新到最新版本的 Xamarin Forms 库以及最新版本的 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.DatePickerRendererBase 1::OnElementChanged(Xamarin.Forms.Platform.iOS.ElementChangedEventArgs 1<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]

由于我们没有 MAC,我们依赖 Appcenter 来构建 iOS。 这是我们的项目/代码还是 Appcenter 的问题。 我们该如何解决?

AppCenter Build 有一个选项可以告诉 Xamarin iOS SDK 的版本用于构建。 每次发布新的 Xamarin iOS SDK 版本时,都需要手动更新。 否则,它将继续使用先前/最后设置的版本进行构建。

一旦我们更新 AppCenter Build 以使用最新的 SDK 构建,所有错误都已解决。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM