Turns out, my model version for the older store had gotten modified. I restored that, but then I had to re-create the mapping file. After that, automatic migration picked it up and tried to use my policies! Onward and upward…
On Jul 18, 2014, at 02:59 , Rick Mann <[email protected]> wrote: > I'm trying to do a custom core data migration, but I'm running into an issue > getting the model for the older data: > > NSDictionary* metadata = [NSPersistentStoreCoordinator > metadataForPersistentStoreOfType: NSSQLiteStoreType URL: storeURL error: > &err]; > NSManagedObjectModel* sourceModel = [NSManagedObjectModel > mergedModelFromBundles: nil forStoreMetadata: metadata]; > > metadata is valid, but sourceModel is nil. > > I have several versions of the same model in my (iOS) app. According to the > docs, passing nil here is the right thing to do. > > Any ideas? Thanks! > > > -- > Rick Mann > [email protected] > > > > _______________________________________________ > > Cocoa-dev mailing list ([email protected]) > > 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/rmann%40latencyzero.com > > This email sent to [email protected] -- Rick Mann [email protected] _______________________________________________ Cocoa-dev mailing list ([email protected]) 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 [email protected]
