On Thu, 17 Jan 2013 21:45:51 -0500, John Brayton said: >I am building a mapping model between two versions of my Core Data >model, and I am encountering a strange issue: > >* If I define six of the seven entity mappings I need in the mapping >model, migrating the data works as expected. > >* When I add the seventh entity mapping, the migration fails with this error: > Persistent store migration failed, missing mapping model. > >* If I delete that seventh entity mapping, the migration works again. > >* I am trying to do the migration by calling addPersistentStoreWithType: >… on the NSPersistentStoreCoordinator. > >* Reading in both the source and destination models with >NSManagedObjectModel initWithContentsOfURL:... works as expected. > >* Reading in the NSMappingModel with initWithContentsOfURL:… works as >expected. > >* With the seventh entity mapping added, reading in the mapping model >with [NSMappingModel mappingModelFromBundles:@[bundle] >forSourceModel:source destinationModel:dest] returns null.
This sounds a lot like something I am seeing. Do you see hash mismatches like described here: <http://stackoverflow.com/questions/10894383/core-data-mapping-model-version-hashes-not-matching-to-source-model-version-hash> I've spent hours on it, and as best as I can tell Xcode is generating invalid xcmappingmodel files. Just the other day I've used a DTS incident on this, but have not heard back yet. I'll follow up in this thread when I do. Cheers, -- ____________________________________________________________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com