【发布时间】:2011-12-26 01:45:27
【问题描述】:
我有一个核心数据EntityDescription,并在其中创建了数据。然后,我更改了EntityDescription,添加了新的,使用xcdatamodeld 文件的编辑器删除了旧的。
现在我的任何核心数据代码都会导致此错误"The model used to open the store is incompatible with the one used to create the store}"。详情如下。我该怎么办?我更喜欢删除数据模型中的所有内容并重新启动新模型。
感谢您的任何建议!
reason=The model used to open the store is incompatible with the one used to create the store}, {
metadata = {
NSPersistenceFrameworkVersion = 320;
NSStoreModelVersionHashes = {
Promotion = <472663da d6da8cb6 ed22de03 eca7d7f4 9f692d88 a0f273b7 8db38989 0d34ba35>;
};
NSStoreModelVersionHashesVersion = 3;
NSStoreModelVersionIdentifiers = (
);
NSStoreType = SQLite;
NSStoreUUID = "9D6F4C7E-53E2-476A-9829-5024691CED03";
"_NSAutoVacuumLevel" = 2;
};
【问题讨论】:
-
我推荐这个类似问题的答案:stackoverflow.com/questions/16185562/…
标签: core-data