In my iPhone application, I use Core Data, and I made changes to my data model that cannot be automatically transferred (i.e., added new relationships). I added a version of the data model (Design → Data Model → Add Model Version) and applied the new data model changes to the new version 2. Then I created a model of matching objects and installed the Source and Destination models in their correct data models (old and new, respectively).
When I launch the application and call persistentStoreCoordinator, my barfs application with the following:
2010-02-27 02: 40: 30.922 XXXX [73578: 20b] Unresolved error Domain error = NSCocoaErrorDomain Code = 134110 UserInfo = 0xfc2240 "Operation could not be completed. (Cocoa error 134110.)", {NSUnderlyingError = Error Domain = NSCocoaErrorDomain Code = 134130 UserInfo = 0xfbb3a0 "Operation could not be performed. (Cocoa error 134130.)"; reason = "Unable to add source store"; }
FWIW (not so much, I think). I also made the usual code changes to persistentStoreCoordinator to use NSMigratePersistentStoresAutomaticallyOption and NSInferMappingModelAutomaticallyOption (for future data model changes that can be automatically migrated). Moreover, my managedObjectModel is created by calling initWithContentsOfURL, where the file / resource type is mammad.
I tried updating the source and target models in the mapping model (Design -> Mapping Model -> Update XXX Model), and also deleted the mapping model and recreated it. I cleaned and rebuilt, but to no avail. I am still getting the above error message.
/ , , ? , ( - , , ).
.