Xcode8.3 不支持Swift2.3

Xcode 8.3 can't support Swift 2.3

我在我的项目中使用 Swift 2.3。昨天,我将 Xcode 更新到 8.3 版,但我的项目无法再成功构建。我收到此错误消息。

“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.

请帮帮我!谢谢!

没错。 您必须将代码转换为 Swift 3。或者尝试下载较低版本的 Xcode。

release note 中明确表示Xcode 8.3 不再支持swift 2.x。您可以选择使用向导将代码更新到 swift 3.1,或者返回到 Xcode 8.2.1。

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