我在xcode 3.2中創(chuàng)建了一個核心數(shù)據(jù)模型,并在Xcode 4.2中進(jìn)行了升級,然后添加了NSManagedObject子類的新實體(請參閱新實體)。首先,它看起來很奇怪,因為它與舊的不在同一個組中。這是我的xcode 4.2上的圖片(AlkitabDB是我在xcode 3.2中創(chuàng)建的圖片,EndeDB是當(dāng)前xcode版本(4.2)中的新圖片:新實體未在xdatamodel中分組第二件事,讓它保持原樣,然后我以與第一個實體(舊的)相同的方式訪問第二個實體(新的),并出現(xiàn)標(biāo)題為錯誤的錯誤。這是錯誤:2012-01-16 21:13:38.496 iHuria[55953:207] Unresolved error Error Domain=NSCocoaErrorDomain Code=134100 "The operation couldn’t be completed. (Cocoa error 134100.)" UserInfo=0x8829cd0 {metadata=<CFBasicHash 0x882a370 [0x1839b38]>{type = immutable dict, count = 7,entries => 2 : <CFString 0x8829b90 [0x1839b38]>{contents = "NSStoreModelVersionIdentifiers"} = <CFArray 0x8829ff0 [0x1839b38]>{type = immutable, count = 0, values = ()} 4 : <CFString 0x8829bc0 [0x1839b38]>{contents = "NSPersistenceFrameworkVersion"} = <CFNumber 0x8829770 [0x1839b38]>{value = +320, type = kCFNumberSInt64Type} 6 : <CFString 0x8829bf0 [0x1839b38]>{contents = "NSStoreModelVersionHashes"} = <CFBasicHash 0x882a080 [0x1839b38]>{type = immutable dict, count = 1,entries => 0 : <CFString 0x882a010 [0x1839b38]>{contents = "AlkitabDB"} = <CFData 0x882a030 [0x1839b38]>{length = 32, capacity = 32, bytes = 0xd02ac5f8be6ab0b39add450aca202ac0 ... 3d45d462998d2ccd}} 7 : <CFString 0x10e3aa8 [0x1839b38]>{contents = "NSStoreUUID"} = <CFString 0x8829e60 [0x1839b38]>{contents = "4F2EE7FF-463B-4055-BBED-8E603CDBDF59"} 8 : <CFString 0x10e3948 [0x1839b38]>{contents = "NSStoreType"} = <CFString 0x10e3958 [0x1839b38]>{contents = "SQLite"} 9 : <CFString 0x8829c40 [0x1839b38]>{contents = "NSStoreModelVersionHashesVersion"} = <CFNumber 0x6b1c7c0 [0x1839b38]>{value = +3, type = kCFNumberSInt32Type} 10 : <CFString 0x8829c70 [0x1839b38]>{contents = "_NSAutoVacuumLevel"} = <CFString 0x882a0c0 [0x1839b38]>{contents = "2"}}}之前,我一直在尋找解決方案,但發(fā)現(xiàn)應(yīng)該從模擬器中刪除該應(yīng)用程序,然后重新運行該應(yīng)用程序,但該方法不起作用。有人知道這個問題的解決方案嗎?請幫忙。
- 3 回答
- 0 關(guān)注
- 468 瀏覽
添加回答
舉報
0/150
提交
取消