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

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 的开源版本。

步骤取自Swift.org

我收到这个错误:

xcrun: error: unable to find utility "launch-with-toolchain", not a developer tool or in PATH

来自 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" 首选项中: