最近Xcode8发布了正式版本,在App Store中也有相应的更新提示,然后我也将Xcode更新到了Xcode8.更新完Xcode8后发现以前用Xcode7.3.1写的swift2.2项目打开后各种错误999+,请问应该如何在Xcode8中使用Swift2.2呢?
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 VersionThen set it to YES and you can use Swift 2.3.
YES
Xcode8 adds a new Use Legacy Swift Language Version field, set it to YES to compile using a compatible version of Swift
Use Legacy Swift Language Version
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.Xcode8 adds a new
Use Legacy Swift Language Version
field, set it to YES to compile using a compatible version of Swift