【问题标题】:How to update compiler to Swift 2?如何将编译器更新为 Swift 2?
【发布时间】:2015-08-22 13:22:08
【问题描述】:

我安装了 XCode 7 Beta,当我打开 Playground 时显示:

Playground 执行因进程意外停止而终止。

我在终端中快速运行,它说:

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

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

【问题讨论】:

    标签: swift


    【解决方案1】:

    当您安装了不同的 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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-03-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-15
      相关资源
      最近更新 更多