无法使用托管的Mac Agent Azure管道构建iOS项目的发行版

问题描述 投票:0回答:1

[当我尝试使用托管的Mac代理构建iOS项目时遇到这两个错误。

lipo : error : unable to find utility "lipo", not a developer tool or in PATH [/Users/runner/runners/2.158.0/work/1/s/src/LOT/iOS/LOT.iOS.csproj]

MTOUCH : error MT5306: Failed to create the a fat library. Please review the build log. [/Users/runner/runners/2.158.0/work/1/s/src/LOT/iOS/LOT.iOS.csproj]

已选择xcode版本10.2.1

我根据本参考文献中给出的解决方案对此进行了更改,https://forums.xamarin.com/discussion/31493/mtouchtask-error-mt5206-failed-to-create-the-a-fat-library-please-review-the-build-log-mt5206

[其他一些链接表明,这可能是由于许可证所致,并尝试了sudo xcodebuild -license accept仍然不起作用。有线索吗?

更新:选择xcode 11.1后,lipo : error : unable to find utility "lipo", not a developer tool or in PATH [/Users/runner/runners/2.158.0/work/1/s/src/LOT/iOS/LOT.iOS.csproj]错误已解决。

xamarin.ios azure-devops azure-pipelines azure-pipelines-release-pipeline build-pipeline
1个回答
0
投票

在bash脚本任务中运行命令解决了我的问题。

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

基本上选择xcode版本10.3

© www.soinside.com 2019 - 2024. All rights reserved.