我有一个核心数据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" = …Run Code Online (Sandbox Code Playgroud) core-data ×1