Xcode 8.3 does not support Swift 2.3

I am using Swift 2.3 in my project. Yesterday I upgraded Xcode to version 8.3, but my project could not work successfully. I received this error message.

The Swift Language Version (SWIFT_VERSION) needs to be configured correctly for purposes that use Swift. Use the [Edit> Convert> To Current Swift Syntax ...] menu to select the Swift version or use the Build settings editor to directly configure the build options.

Please help me! Thank!

+13
swift xcode8
Mar 30 '17 at 1:58
source share
2 answers

The release note clearly states that Xcode 8.3 no longer supports swift 2.x. You can either use the wizard to upgrade the code to version 3.1, or return to Xcode 8.2.1.

https://developer.apple.com/library/content/releasenotes/DeveloperTools/RN-Xcode/Chapters/Introduction.html

+13
Mar 30 '17 at 2:07
source share

It's true. You need to convert your code to Swift 3. Or try downloading a lower version of Xcode.

+1
Mar 30 '17 at 2:01
source share



All Articles