Use Legacy Swift Language Version - Xcode 8.2

后端 未结 9 629
滥情空心
滥情空心 2020-12-25 13:47

After updating to Xcode 8.2 the compiler throws one error for my App target:

“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be con

相关标签:
9条回答
  • 2020-12-25 14:29

    Close Xcode and open the corresponding project.pbxproj in a text editor of your choice.

    Replace SWIFT_VERSION = 3.0.1; with SWIFT_VERSION = 3.0; for all targets.

    Reopen Xcode.

    0 讨论(0)
  • 2020-12-25 14:30

    Well I've finally figure it out. I've removed the project and clone it again, restarted Xcode, run pod repo update and pod install and it worked. I've no idea why.

    0 讨论(0)
  • 2020-12-25 14:32

    I got the same error when converting parts of my app (both Obj C and Swift) to a framework, but in my case it was that the "Swift Language Version" under Build Settings wasn't set. I set it to Swift 3 (the only option), and the error went away.

    0 讨论(0)
提交回复
热议问题