更新到 Xcode 8.2 后,编译器为我的 App 目标抛出一个错误:
“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.
但是在我拥有的所有目标中都将其设置为No
。试图删除派生数据,清理项目目录,重新启动 Xcode。没有任何帮助。有人知道吗?
//已编辑
可以肯定的是:我已将所有目标 Use Legacy Swift Language Version
设置为 No
并且该项目在 Xcode 8.1 中编译时工作正常。更新到 Xcode 8.2 后它不起作用。
//编辑 21.12.
此问题已在 Xcode 8.2.1 中修复
最佳答案
关于ios - 使用旧版 Swift 语言版本 - Xcode 8.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41118912/