【问题标题】:Couldn't build release version of iOS project with hosted mac agent Azure pipeline无法使用托管的 mac 代理 Azure 管道构建 iOS 项目的发布版本
【发布时间】:2020-02-20 08:38:15
【问题描述】:

当我尝试使用托管的 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 仍然不起作用。有什么线索吗?

更新: 选择xcode11.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】:

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

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

    基本上它选择xcode版本10.3

    【讨论】:

      猜你喜欢
      • 2020-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-08
      • 2021-03-15
      • 1970-01-01
      • 2020-12-21
      • 2019-12-13
      • 1970-01-01
      相关资源
      最近更新 更多