“Use Legacy Swift Language Version” (SWIFT_VERSION

2019-03-11 02:11发布

Ever since I've updated to Xcode 8.2 (GM seed, from the App Store), I have been stuck at the following error:

Use Legacy 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.

So I went to my target's Build Settings, and searched for SWIFT_VERSION to see where I was erring. However, I was surprised to find that it was already set to No!

How do I fix this?

7条回答
何必那么认真
2楼-- · 2019-03-11 02:45

Just in case anyone else runs into the same issue I just had.

I had an app that was ready to launch onto the app store but i was waiting, meanwhile i updated to Xcode 9 beta and was messing around, changed a few things in my app. I went to upload it to the app store and it said you could not use beta versions to upload so i went back to Xcode 8 but it started giving me the “Swift Language Version” (SWIFT_VERSION)..." error.

My fix

Under your project Build Settings > Swift Compiler Version > I had to change this from Swift 4(currently not supported) to Swift 3.

Problem Solved :)

查看更多
登录 后发表回答