Recently, Xcode8 has released an official version, and there are corresponding update prompts in the App Store. Then I also updated Xcode to Xcode8. After updating Xcode8, I found various errors after opening the swift2.2 project previously written with Xcode7.3.1. 999 , how to use Swift2.2 in Xcode8?
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