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
"As human beings our greatness lies not so much in being able to remake the world... as being able to remake ourselves" - Gandhi
|