我发生了崩溃,在我的控制台中我收到此错误:
Unresolved error Error Domain=NSCocoaErrorDomain Code=134100 "The operation couldn’t be completed. (Cocoa error 134100.)" UserInfo=0x6d30540 {metadata=<CFBasicHash 0x6d2c680 [0x171bb38]>{type = immutable dict, count = 7,
entries =>
.....
.....
reason = "The model used to open the store is incompatible with the one used to create the store";
你明白原因了吗,很抱歉我是核心数据新手。 谢谢
最佳答案
删除设备上的应用程序,通过管理器删除派生数据,然后重新部署。当您更改核心数据模型并在设备上留下旧版本时,您会收到此错误。因此,在核心数据模型更改后,您每次构建时都需要删除设备上的当前构建。
更多信息可以在 Core Data Model Versioning and Data Migration Programming Guide 中找到.
关于objective-c - 核心数据崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10335350/