Xcode 4, Core Data Model Version - Set Current Version

Nate Potter picture Nate Potter · Mar 21, 2011 · Viewed 29.3k times · Source

I'm confused about how to perform the following function in Xcode 4 to set the model to use after creating a versioned model.

Design > Data Model > Set Current Version

Answer

Ben picture Ben · Mar 21, 2011
  1. Click on the top level .xcdatamodelId file (the one that has the many versions of .xcdatamodel under it as children).
  2. Make sure the Utilities sidepane is visible (if not click on the third "View" button at the top right of the window).
  3. In the Utilities sidepane select the File inspector (little paper icon on the top left)
  4. You will see "Versioned Core Data Model" as a group so just change the "Current" drop-down to your new version.