我在我的應用程序中有兩個tableView,用戶應該可以將對象添加到它們兩個。使用一個tableView它工作正常(只有一個coreData 實體)。但是當我添加另一個實體並且只使用一個tableView執行相同的操作時,xcode向我顯示一個錯誤。CoreData-Project有兩個實體
輸出是:
Unresolved error Error Domain=NSCocoaErrorDomain Code=134100 "The operation couldn’t be completed. (Cocoa error 134100.)" UserInfo=0x10333d80 {metadata={
NSPersistenceFrameworkVersion = 419;
NSStoreModelVersionHashes = {
Buy = <883135e4 2884b0ed 4bb8fc1c 7d56c229 fbae3090 91be719d 73ac5d66 65e70b18>;
};
NSStoreModelVersionHashesVersion = 3;
NSStoreModelVersionIdentifiers = (
""
);
NSStoreType = SQLite;
NSStoreUUID = "...";
"_NSAutoVacuumLevel" = 2;
}, reason=The model used to open the store is incompatible with the one used to create the store}, {
metadata = {
NSPersistenceFrameworkVersion = 419;
NSStoreModelVersionHashes = {
Buy = <883135e4 2884b0ed 4bb8fc1c 7d56c229 fbae3090 91be719d 73ac5d66 65e70b18>;
};
NSStoreModelVersionHashesVersion = 3;
NSStoreModelVersionIdentifiers = (
""
);
NSStoreType = SQLite;
NSStoreUUID = "...";
"_NSAutoVacuumLevel" = 2;
};
reason = "The model used to open the store is incompatible with the one used to create the store";
}
(lldb)
我試圖解決這個問題了幾個小時,但我沒有在第二的tableView同樣的事情在第一。
也許有人可以幫助我。謝謝advancen
您是否搜索「用於打開商店的模型不兼容...」錯誤消息?應該有一些點擊... –