【发布时间】:2019-10-25 20:25:15
【问题描述】:
在构建 Xamarin.iOS 项目时遇到以下错误。它建立在我的本地机器上。而不是在托管的 macOS High Sierra 托管代理上。
Xamarin.iOS 任务失败并出现错误错误:/Library/Frameworks/Mono.framework/Versions/Current/Commands/msbuild 失败并返回代码:1。有关设置构建管道的指导,请参阅https://go.microsoft.com/fwlink/?LinkId=760847。 请查看随附的屏幕截图以了解设置。
这里是有关设置的更多信息。
Xamarin.IOS 的 YAML 文件
您的构建管道引用了一个名为“Parameters.solution”的未定义变量。为此 YAML 文件创建或编辑构建管道,在“变量”选项卡上定义变量。请参阅https://go.microsoft.com/fwlink/?linkid=865972 #您的构建管道引用“BuildConfiguration”变量,您已选择该变量可在排队时设置。为此 YAML 文件创建或编辑构建管道,在“变量”选项卡上定义变量,然后选择选项以使其在排队时可设置。见https://go.microsoft.com/fwlink/?linkid=865971 步骤:-
任务:XamariniOS@2
displayName: '构建 Xamarin.iOS 解决方案 **/*.sln'
输入:
solutionFile: '$(Parameters.solution)'
配置:'$(BuildConfiguration)'
干净:是的
packageApp: 假
buildForSimulator: 是的
runNugetRestore: 真
Nuget 恢复的 YAML 文件
您的构建管道引用了一个名为“Parameters.solution”的未定义变量。为此 YAML 文件创建或编辑构建管道,在“变量”选项卡上定义变量。见https://go.microsoft.com/fwlink/?linkid=865972
步骤:-
任务:NuGetCommand@2
displayName: 'NuGet 恢复'
输入:
restoreSolution: '$(Parameters.solution)'
Nuget 4.5 的 YAML 文件
步骤:- 任务:NuGetToolInstaller@0
displayName: '使用 NuGet 4.5'
输入:版本规范:4.5
checkLatest: 真
【问题讨论】:
-
您的本地计算机是否也在运行 High Sierra?两者的 iOS SDK 版本是否相同?
标签: xamarin tfs xamarin.ios azure-devops azure-pipelines