• 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
Core Data versioning problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Data versioning problem


  • Subject: Core Data versioning problem
  • From: Michael Swan <email@hidden>
  • Date: Wed, 02 Jul 2008 20:15:44 -0400

So I have a Core Data document based application
I established a Data Model MyDocument.xcdatamodel
I selected Design -> Data Model -> Add Model Version
it created MyDocument 2.xcdatamodel
I selected the above file.
I selected Design -> Data Model -> Set Current Version
I added one Enitity AdditionalExpenditures
I saved the file
I selected File-> New File...
Selected Mapping Model.
Choose MyDocument.xcdatamodel as Source
Choose MyDocument 2.xcdatamodel as Destination
Made sure everything was saved
Build and Go
Documents fail to open or be created and I get this in the console log "Can't merge models with two different entities named 'BudgetItem'"
I did not make any changes to that entity or to its class file.

As an experiment I tried removing the space in the second model files name ("MyDocument 2.xcdatamodel" to "MyDocument2.xcdatamodel"), threw out the mapping file made a new one and now I get "*** -[NSCFArray insertObject:atIndex:]: attempt to insert nil" instead. 
I have even tried the standard "Clean All Targets" to no avail.

If anyone has any ideas as to what magic step I missed please let me know, I freely admit to being relatively new to all this but I have gotten a pretty good grasp of the concepts and can follow the documentation pretty well (this was based on the Apple documentation on Data Migration).

Thank you,
Mike Swan
ETCP Certified Entertainment Electrician
http://www.michaelsswan.com




"As human beings our greatness lies not so much in being able to remake the world... as being able to remake ourselves"  - Gandhi



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: #include files <> vs "" not found?
  • Next by Date: Multiple Views or Multiple Nib Files
  • Previous by thread: Re: iPhone Development Lists/Forums?
  • Next by thread: Multiple Views or Multiple Nib Files
  • Index(es):
    • Date
    • Thread