【发布时间】:2019-02-14 10:58:01
【问题描述】:
处理一个 Objective C iOS 应用程序(工作正常);当我开始设置一些核心数据实体时,我一编译就会收到以下错误消息:
The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. This setting can be set in the build settings editor.
我使用的是 Xcode 版本 9.4.1,构建设置编辑器中没有 SWIFT_VERSION。
如果我消除刚刚设置的 Core Data 实体,问题就会消失。
如果有人解释并告诉我该怎么做,我会很高兴。 当我的应用程序仅在 Objective C 中时,看到这条与“Swift Language Version”相关的消息我有些惊讶。但我认为某些依赖项可能正在使用 Swift。
【问题讨论】:
-
请在 Build Settings 中搜索 Swift 语言版本。或仅在 Build Settings 中快速搜索,如果您发现任何与版本相关的设置,您也可以在其中手动编写 4.1。
标签: ios swift objective-c cocoa-touch xcode9.4