xamarin.ios - 无法使用托管的 mac 代理 Azure 管道构建 iOS 项目的发布版本
问题描述
当我尝试使用托管的 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-该-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]
错误已解决。
解决方案
在 bash 脚本任务中运行命令解决了我的问题。
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
基本上它选择 xcode 版本10.3
。
推荐阅读
- apache-spark - Spark withWatermark,仅存储间隙前后的值
- powershell - 来自 Powershell 命令行的 RDP
- angular - 工具提示不适用于 FullCalendar v5 In angular
- variables - 即使关闭窗口,如何访问变量
- tensorflow - TF 模型在 GPU 中产生不同的输出
- c++ - 在写“%15.2f”或类似的东西时,我们可以在 printf 中使用下划线而不是空格吗?
- protocol-buffers - NestJS gRPC 未实现的流式服务器方法
- git - 推送后Gitlab文件夹结构未更新
- reactjs - 类型“HTMLInputElement”.ts(2339) 上不存在属性“重置”
- elasticsearch - 如何在考虑缺少键或匹配值的情况下查询结果