samir
samir

Reputation: 4551

Crash with Core data

i have a crash and in the my console i get this error :

Unresolved error Error Domain=NSCocoaErrorDomain Code=134100 "The operation couldn’t be completed. (Cocoa error 134100.)" UserInfo=0x6d30540 {metadata=<CFBasicHash 0x6d2c680 [0x171bb38]>{type = immutable dict, count = 7,
entries =>
.....
.....

reason = "The model used to open the store is incompatible with the one used to create the store";

Do you see the reason for this, i am sorry i am new to Core Data. thanks

Upvotes: 0

Views: 112

Answers (2)

mAu
mAu

Reputation: 2018

Delete your application on the device, delete the derived data via the Organizer and deploy again. You get this error, when you change your core data model and have an old build left on your device. So you need to delete the current build on your device every time you build after the core data model has changed.

More information can be found in the Core Data Model Versioning and Data Migration Programming Guide.

Upvotes: 1

borrrden
borrrden

Reputation: 33421

Looks like you changed the data model without updating the database itself. If you have a prepopulated DB then your then it doesnt match your model. If you dont then you need to do a clean install to create a new DB.

Upvotes: 0

Related Questions