gpt4 book ai didi

ios - 核心数据 - 预填充数据时模型不兼容

转载 作者:行者123 更新时间:2023-11-28 22:14:23 28 4
gpt4 key购买 nike

我在 Xcode 的新项目中添加预填充数据时遇到此错误。

Unresolved error Error Domain=NSCocoaErrorDomain Code=134100 "The operation couldn’t be completed. (Cocoa error 134100.)" UserInfo=0x8936000 {metadata={
NSPersistenceFrameworkVersion = 407;
NSStoreModelVersionHashes = {
Cleaner = <bb90421c 1d099882 3b9c4615 f58bb6d2 b9f1e567 c98e868e 5f467f7c d34be700>;
Location = <7f9bec7a 3e3692f8 ca426545 7239c5c8 ea704142 8614e1fd 7681eaaf 5dbb1586>;
LocationRoomMap = <f1052409 bfe4fb62 b7c45b85 2f34ab74 109c09df 07bc69ff a1a130bc 3dd23ced>;
Login = <39315a04 8bf4a9f5 e1fd123d 41854f3c 8891af2b ddffdb43 2fa32209 574af392>;
Room = <d07972d5 5b089bdd 2fa7afde f723f5a8 abb7548d 9cfe9fc6 bb343b9d 3094d12e>;
TestPlan = <e47ccac2 197bd2a1 41e295b2 66fcc993 1671b53d 88b90334 3942dab4 1eed766e>;
TestPoint = <e6806bd5 bba33811 c55ea3cd 8d8e0c89 9a8742f2 5c7b19f9 d285b7d2 ae5eab96>;
};
NSStoreModelVersionHashesVersion = 3;
NSStoreModelVersionIdentifiers = (
""
);
NSStoreType = SQLite;
NSStoreUUID = "3D9D9EB1-5ED3-47DB-8B76-F6E4051B435E";
"_NSAutoVacuumLevel" = 2;
}, reason=The model used to open the store is incompatible with the one used to create the store}, {
metadata = {
NSPersistenceFrameworkVersion = 407;
NSStoreModelVersionHashes = {
Cleaner = <bb90421c 1d099882 3b9c4615 f58bb6d2 b9f1e567 c98e868e 5f467f7c d34be700>;
Location = <7f9bec7a 3e3692f8 ca426545 7239c5c8 ea704142 8614e1fd 7681eaaf 5dbb1586>;
LocationRoomMap = <f1052409 bfe4fb62 b7c45b85 2f34ab74 109c09df 07bc69ff a1a130bc 3dd23ced>;
Login = <39315a04 8bf4a9f5 e1fd123d 41854f3c 8891af2b ddffdb43 2fa32209 574af392>;
Room = <d07972d5 5b089bdd 2fa7afde f723f5a8 abb7548d 9cfe9fc6 bb343b9d 3094d12e>;
TestPlan = <e47ccac2 197bd2a1 41e295b2 66fcc993 1671b53d 88b90334 3942dab4 1eed766e>;
TestPoint = <e6806bd5 bba33811 c55ea3cd 8d8e0c89 9a8742f2 5c7b19f9 d285b7d2 ae5eab96>;
};
NSStoreModelVersionHashesVersion = 3;
NSStoreModelVersionIdentifiers = (
""
);
NSStoreType = SQLite;
NSStoreUUID = "3D9D9EB1-5ED3-47DB-8B76-F6E4051B435E";
"_NSAutoVacuumLevel" = 2;
};
reason = "The model used to open the store is incompatible with the one used to create the store";
}

我试过...重置内容和设置..数据模型的模型版本控制..但没有奏效...但是如果只有一个实体存在,那么就不会出现这样的错误。当出现此错误时不止一个实体。

最佳答案

我有一个类似的问题(虽然不完全相同),这是由于我在创建 SQLite 数据库文件后对模型进行了更改而引起的。我不得不从 Debug 文件夹中删除 SQLite 数据库(应该在您的应用程序编译到的位置创建该文件夹),然后再次构建应用程序。使用更新后的模型创建了一个新的 SQLite 数据库。希望这是有道理的并且有一些帮助。

更新:

这个和其他建议的解决方案可以在 stackoverflow 的其他地方找到:

The model used to open the store is incompatible with the one used to create the store

关于ios - 核心数据 - 预填充数据时模型不兼容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22083813/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com