开源swift项目的Swift.org问题.错误:xcrun:错误:无法找到实用程序“使用工具链启动",而不是开发人员工具或在PATH中 [英] Swift.org issue with open source swift project. Error: xcrun: error: unable to find utility "launch-with-toolchain", not a developer tool or in PATH
问题描述
我正在尝试使用自定义工具链启动Xcode,并使其能够使用Swift的开源版本.
I am trying to Start Xcode with the custom toolchain and to be enabled to use the open source version of Swift.
步骤取自 Swift.org
我收到此错误:
xcrun: error: unable to find utility "launch-with-toolchain", not a developer tool or in PATH
推荐答案
来自 https的开源Swift工具链://swift.org/download/#apple-platforms 需要最新的Xcode 7.2(当前:Beta 4).
The open source Swift toolchain from https://swift.org/download/#apple-platforms requires the latest Xcode 7.2 (currently: beta 4).
xcrun
和其他构建工具使用的developer目录的位置必须设置为此Xcode 7.2.可以从命令行完成
与
The location of the developer directory used by xcrun
and other build tools must be set to this Xcode 7.2. This can be done from the command-line
with
sudo xcode-select -s /path/to/Xcode7.2-beta.app/Contents/Developer
或在Xcode的位置"偏好设置中:
or in the Xcode "Locations" preferences:
这篇关于开源swift项目的Swift.org问题.错误:xcrun:错误:无法找到实用程序“使用工具链启动",而不是开发人员工具或在PATH中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!