简体   繁体   English

错误:Swift 2.3不支持生成核心数据代码

[英]Error: Core Data Code generation is not supported for Swift 2.3

I'm getting the error: 我收到错误:

Core Data Code generation is not supported for Swift 2.3

since I moved to Swift 2.3 but I cannot find any documentation or previous questions about this issue. 自从我搬到Swift 2.3后,我找不到任何关于这个问题的文档或先前的问题。 Is CoreData not available in Swift 2.3? CoreData在Swift 2.3中不可用吗?

在此输入图像描述

Code generation for Core Data is not available for Swift 2.3 as the error states (as of Xcode 8 Beta 2). Core Data的代码生成不适用于Swift 2.3作为错误状态(从Xcode 8 Beta 2开始)。

Just create your entity classes and your @NSManaged attributes yourself. 只需自己创建实体类和@NSManaged属性。

In XCode Model Editor you'll find an option in the Data Model Inspector to disable automatic code generation ( Class -> CodeGen -> Manual/None ). 在XCode模型编辑器中,您将在数据模型检查器中找到一个禁用自动代码生成的选项( Class - > CodeGen - > Manual / None )。

In XCode Model Editor you'll find an option in the Data Model Inspector to disable automatic code generation (Class -> CodeGen -> Manual/None) For more detail Here is work around. 在XCode模型编辑器中,您将在数据模型检查器中找到一个禁用自动代码生成的选项(类 - > CodeGen - >手动/无)更多详细信息以下是解决方法。

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM