Swift.org与开源swift项目的问题.错误:xcrun:错误:无法找到实用程序"launch-with-toolchain",而不是开发人员工具或PATH

Ole*_*huk 14 macos terminal xcrun swift

我正在尝试使用自定义工具链启动Xcode并启用以使用Swift的开源版本.

步骤取自Swift.org

我收到此错误:

xcrun: error: unable to find utility "launch-with-toolchain", not a developer tool or in PATH
Run Code Online (Sandbox Code Playgroud)

Mar*_*n R 32

来自https://swift.org/download/#apple-platforms的开源Swift工具链需要最新的Xcode 7.2(目前:beta 4).

xcrun必须将此Xcode 7.2设置为其他构建工具使用的开发人员目录的位置.这可以通过命令行来完成

sudo xcode-select -s /path/to/Xcode7.2-beta.app/Contents/Developer

或者在Xcode"Locations"首选项中:

在此输入图像描述