• 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
Issue with Core Data Mapping Model
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issue with Core Data Mapping Model


  • Subject: Issue with Core Data Mapping Model
  • From: John Brayton <email@hidden>
  • Date: Thu, 17 Jan 2013 21:45:51 -0500

Hi,

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.

Using git I've confirmed that the only file I am changing is the mapping model file; I am not changing the models themselves.

I would appreciate any thoughts on how to debug this further.  Thank you.

John
_______________________________________________

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: Issue with Core Data Mapping Model
      • From: Sean McBride <email@hidden>
  • Prev by Date: Re: Using NSSavePanel to export to UTTypeFolder without a file extension.
  • Next by Date: Re: NSTextfield focus in contextual menu
  • Previous by thread: Programmatically Determining the Rendered Size of an NSTextView
  • Next by thread: Re: Issue with Core Data Mapping Model
  • Index(es):
    • Date
    • Thread