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

Re: Issue with Core Data Mapping Model


  • Subject: Re: Issue with Core Data Mapping Model
  • From: Sean McBride <email@hidden>
  • Date: Tue, 22 Jan 2013 12:12:10 -0500
  • Organization: Rogue Research Inc.

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                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada

_______________________________________________

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: John Brayton <email@hidden>
References: 
 >Issue with Core Data Mapping Model (From: John Brayton <email@hidden>)

  • Prev by Date: Re: How do I use CGDisplayCapture() to capture an NSOpenGLView in a XIB?
  • Next by Date: Re: How to avoid warning?
  • Previous by thread: Issue with Core Data Mapping Model
  • Next by thread: Re: Issue with Core Data Mapping Model
  • Index(es):
    • Date
    • Thread