2

I'm trying to debug an issue with my mapping model not being used by my migration, and so I printed out the sourceModel and destinationModel's versionIdentifiers, but both were blank.

http://developer.apple.com/library/ios/#documentation/cocoa/Reference/CoreDataFramework/Classes/NSManagedObjectModel_Class/Reference/Reference.html%23//apple_ref/occ/instm/NSManagedObjectModel/versionIdentifiers

This link says to set them in the model inspector but I can't find that on xcode 3 or 4... or at least there is no versionIdentifier or similar in anywhere I can find for the data model itself.

Does anyone know where I find that?

westsider
  • 4,967
  • 5
  • 36
  • 51
Philippe Sabourin
  • 8,066
  • 3
  • 31
  • 46

1 Answers1

0

Take a look at this posting - and, in particular, my answer ;) : Core Data lightweight migration: Can't find or automatically infer mapping model for migration

I did not find versionIdentifiers to be as helpful in debugging as the 'metadata' for the various entities - as I outlined here: NSManagedObjectModel versionIdentifiers

Hope this helps.

Community
  • 1
  • 1
westsider
  • 4,967
  • 5
  • 36
  • 51
  • I tried your suggestion fr the versionidentifier setting the other day (doing get info 2x) but it never worked for me. The same window always showed up. Thanks anyways, i've solved my issue another way (so i no longer need to debug it). – Philippe Sabourin Mar 22 '11 at 04:55