I have 2 versions of the core data model, I’m going to migrate the old version to the new one.
However even if the new version is ticked with the green icon in xCode, I’m not sure I’m using the current version.
How can I be sure I’m using the correct version of the core data model ? Can I output it with the code ?
Thanks
Your application works only with current version (green icon). If you provide possibility to load file with old model you must implement automatic migration from every old version to current or customize this process. More details here: Introduction to Core Data Model Versioning and Data Migration Programming Guide
For example you can set an identifier (in interface builder) for each model and then use
versionIdentifiersmethod of youNSManagedObjectModelobject:Hope it helps.