search

Home  >  Q&A  >  body text

objective-c - Xcode8中如何使用Swift2.2

最近Xcode8发布了正式版本,在App Store中也有相应的更新提示,然后我也将Xcode更新到了Xcode8.更新完Xcode8后发现以前用Xcode7.3.1写的swift2.2项目打开后各种错误999+,请问应该如何在Xcode8中使用Swift2.2呢?

我想大声告诉你我想大声告诉你2757 days ago459

reply all(2)I'll reply

  • 阿神

    阿神2017-05-02 09:32:27

    Why not fix the error?


    Another clear way:
    Do as @山河永愿 said, but Swift 2.2 is no longer available, you need to go this way:

    Build Settings -> Swift Compiler - Version -> Use Legacy Swift Language Version
    Then set it to YES and you can use Swift 2.3.

    reply
    0
  • PHP中文网

    PHP中文网2017-05-02 09:32:27

    Xcode8 adds a new Use Legacy Swift Language Version field, set it to YES to compile using a compatible version of Swift

    reply
    0
  • Cancelreply