遇到“开店模型与开店模型不兼容"怎么办? [英] What to do when get "The model used to open the store is incompatible with the one used to create the store"?
问题描述
我有一个核心数据 EntityDescription
并且我在其中创建了数据.然后,我使用 xcdatamodeld
文件的编辑器更改了 EntityDescription
,添加了新的,删除了旧的.
I had a core data EntityDescription
and I created data in it. Then, I changed the EntityDescription
, added new one, deleted the old one using the editor for xcdatamodeld
file.
现在我的任何核心数据代码都会导致此错误用于打开商店的模型与用于创建商店的模型不兼容}"
.详情如下.我该怎么办?我更喜欢删除数据模型中的所有内容并重新启动新的.
Now any of my code for core data causes this error "The model used to open the store is incompatible with the one used to create the store}"
. The detail is below. What should I do? I prefer to remove everything in the data model and restart new one.
感谢您的任何建议!
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;
};
推荐答案
或者如果您处于开发模式,您也可以删除应用程序并再次运行它.
Or if you're in dev mode, you can also just delete the app and run it again.
这篇关于遇到“开店模型与开店模型不兼容"怎么办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!