• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Trying to custom-migrate core data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Trying to custom-migrate core data
      • From: Rick Mann <email@hidden>
  • Prev by Date: How to get iOS version at runtime?
  • Next by Date: Re: Trying to custom-migrate core data
  • Previous by thread: Re: How to get iOS version at runtime?
  • Next by thread: Re: Trying to custom-migrate core data
  • Index(es):
    • Date
    • Thread