如何将编译器更新到Swift 2?

Meh*_*vut 0 swift

我安装了XCode 7 Beta,当我打开游乐场时它说:

Playground执行终止,因为进程意外停止.

我在终端跑得很快,它说:

Apple Swift 1.2版(swiftlang-602.0.53.1 clang-602.0.53)目标:x86_64-apple-darwin15.0.0

如何将我的swift版本更新为2?

Ch0*_*0l8 5

当您安装了不同的Xcode IDE副本时会发生这种情况

使用xcode-select命令行实用程序选择要使用的Xcode版本

https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcode-select.1.html

$ xcode-select --switch /path/to/the/Xcode
Run Code Online (Sandbox Code Playgroud)