无法找到 Xcode。请确保在您的机器上安装了 Xcode

Unable to locate Xcode. Please make sure to have Xcode installed on your machine

我是 Fastlane 的新手。有谁知道如何从 运行

修复这个错误

fastlane ios myLane.

输出:

[12:50:11]: fastlane finished with errors

[!] Unable to locate Xcode. Please make sure to have Xcode installed on your machine

但我从 Mac App Store 安装了最新的 Xcode (9.3.1)。

环境信息:

fastlane --version

fastlane 2.95.0

这是最新版本。

ruby -v

ruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17]

尝试检查位置下 Xcode 中的首选项,并确保您在命令行工具下拉列表中选择了 Xcode 版本:

CLI 方法:

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