Chapter 8. Migration and Versioning

When using the code provided by Apple in the Core Data project templates at the time of writing, a Core Data-based iOS application will only be able to work with a persistent store created using the current data model version. During the development of an application, you typically go through several different revisions of the data model. If you make a change to the data model, such as adding a new attribute on an entity, the Core Data framework will raise an exception and refuse to load the persisted data.

In order to support ...

Get Core Data for iOS: Developing Data-Driven Applications for the iPad, iPhone, and iPod touch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.