Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 8.3 can't support Swift 2.3 [closed]

Tags:

swift

xcode8

I'm using Swift 2.3 in my project. Yesterday, I updated Xcode to version 8.3 but my project can't build successfully any more. I got this error message.

“Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.

Please help me! Thanks!

like image 761
Lumialxk Avatar asked Mar 30 '17 01:03

Lumialxk


2 Answers

It is said in release note clearly that Xcode 8.3 doesn't support swift 2.x any more. You can either choose to use wizard to update your code to swift 3.1, or go back to Xcode 8.2.1.

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

like image 148
Owen Zhao Avatar answered Nov 15 '22 12:11

Owen Zhao


That's true. You have to convert your code to Swift 3. Or try to download a lower version of Xcode.

like image 45
tuledev Avatar answered Nov 15 '22 12:11

tuledev