Trying to custom-migrate core data
Trying to custom-migrate core data
- Subject: Trying to custom-migrate core data
- From: Rick Mann <email@hidden>
- Date: Fri, 18 Jul 2014 02:59:03 -0700
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@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden