首页 > 解决方案 > Azure Pipelines 构建 Xamarin Forms iOS 目标是较新的 Xamarin 版本?

问题描述

我正在使用 Azure Pipelines 构建我的 Xamarin Forms 应用程序。

在此处输入图像描述

我只能针对 Xamarin iOS 14.4 max 吗?

https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md#xamarin

不能以 Xamarin iOS 14.6 为目标吗?

https://docs.microsoft.com/en-us/xamarin/ios/release-notes/14/14.6

这是我的管道当前的样子:

在此处输入图像描述

单声道 + 恢复脚本步骤:

#wget https://dist.nuget.org/win-x86-commandline/v5.10.0/nuget.exe
#ln -s /Library/Frameworks/Mono.framework/Versions/Current/Commands/nuget nuget

# 6.12.0.148 https://www.mono-project.com/download/preview/#download-mac
wget https://download.mono-project.com/archive/6.12.0/macos-10-universal/MonoFramework-MDK-6.12.0.148.macos10.xamarin.universal.pkg
sudo chmod +x MonoFramework-MDK-6.12.0.148.macos10.xamarin.universal.pkg
sudo installer -pkg MonoFramework-MDK-6.12.0.148.macos10.xamarin.universal.pkg -target /  


echo "MSBuild restore start"
MSBuild /Users/runner/work/1/s/Cellar/Cellar.iOS/Cellar.iOS.csproj -t:restore
echo "MSBuild restore finish"

标签: xamarinxamarin.formsxamarin.iosazure-pipelines

解决方案


我只能针对 Xamarin iOS 14.4 max 吗?

恐怕答案是肯定的(截至发帖时)。

根据该文档,最新安装的 IOS SDK版本是14.4

在此处输入图像描述

要解决此问题,您可以创建您的私人代理:

https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/v2-windows?view=azure-devops&viewFallbackFrom=vsts


推荐阅读