iPhone:Updating a Core Data Model in Future Versions of an App

Chris picture Chris · Mar 11, 2010 · Viewed 8.1k times · Source

I am releasing a Core Data based app and wondered what I need to consider if, in an update later down the line, I need to change the model.

How do I move existing user data on the device from the old data model into a new updated model?

Thanks

Answer

Ole Begemann picture Ole Begemann · Mar 11, 2010

Generally, you'll have to consider nothing now but as soon as you change your data model, you'll have to employ Core Data's model migration tools. Read the Core Data Model Versioning and Data Migration Programming Guide.