macos - 如何配置 Travis CI 以便 `xcrun` 可以找到 `altool`(Mac OS X 10.14 上的 xcode 11.3)?
问题描述
在 Travis CI 上运行我的公证构建时,出现以下错误:
xcrun: error: unable to find utility “altool”, not a developer tool or in PATH
你可以在这里找到完整的构建输出:https ://travis-ci.org/github/trufflesuite/ganache/jobs/663747601#L3825
在此处完成 Travis 配置:https ://travis-ci.org/github/trufflesuite/ganache/jobs/663747601/config
我已经尝试运行sudo xcode-select -r
并sudo xcode-select -s /Applications/Xcode.app
根据在 github 上找到的提示和堆栈溢出(https://stackoverflow.com/a/56617634/160173,https://stackoverflow.com/a/53204124/160173),但无济于事。
我错过了什么?
解决方案
我的问题是我的 Travis 配置实际上并没有使用 ; 的根级osx_image
指令"xcode11.3"
。include
由于我使用了 Travis矩阵,该指令被忽略。osx_image
使用矩阵时指定的正确方法include
如下:
matrix:
include:
- os: osx
osx_image: "xcode11.3"
- os: linux
dist: bionic
进行此更改后,我无需尝试上述xcode-select
问题中链接的解决方案。
推荐阅读
- java - 根据用于填充表的列表元素中未显示的 java bean 值设置 JavaFX FXML 表行文本颜色
- activemq - 使用 LDAP Active Directory 身份验证的 ActiveMQ Web 控制台
- ios - Swift 如何解开可选变量?展开会导致任何开销吗?
- python - 创建具有相同键的字典列表?
- java - 如何获取另一个活动中的 TextView 的值?
- php - 在php中获取系统信息
- javascript - 使用javascript的数组中的数字总和
- angular - Angular 6:在当前路线中搜索特定单词
- vue.js - 如果目标重定向解析为相同的路径,则不会调用 Vue 路由器 beforeEach
- outlook - 使用 InternetMessageId 获取 Exchange 在线消息详细信息