Xcode 8.3 不支持 Swift 2.3 [英] Xcode 8.3 can't support Swift 2.3

查看:33
本文介绍了Xcode 8.3 不支持 Swift 2.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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 的目标正确配置Swift 语言版本"(SWIFT_VERSION).使用 [Edit > Convert > To Current Swift Syntax…] 菜单选择 Swift 版本或使用 Build Settings 编辑器直接配置构建设置.

"Swift Language Version" (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.

请帮帮我!谢谢!

推荐答案

发行说明中明确表示 Xcode 8.3 不再支持 swift 2.x.您可以选择使用向导将代码更新到 swift 3.1,也可以返回到 Xcode 8.2.1.

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

这篇关于Xcode 8.3 不支持 Swift 2.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆