如何设置 Xamarin iOS SDK 版本以在 Azure Devops 上构建

How to set Xamarin iOS SDK version for building on Azure Devops

我有一个 iOS 项目针对所有配置的 SDK 版本 14.5,但是当我通过 Azure Devops 管道构建它时,它针对版本 13.5。释放后,我收到以下消息。

SDK Version Issue. This app was built with the iOS 13.2 SDK. All iOS apps submitted to the App Store must be built with the iOS 14 SDK or later, included in Xcode 12 or later.

这告诉我它没有读取项目配置上的值。

为了解决这个问题,我必须更新我们的托管构建代理 OS 以使用 Mac 版本OS 运行 XCode 12。在撰写本文时这是 MacOS 10.15.

有关托管构建代理操作系统附带哪些软件的更多信息,请访问此 link:https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml#notes-on-choosing-hosted-macos