2

Hi I am iOS beginner and having CoreData implemented in my app.

Everytime I added new entities in my coredata, I need to re-create the NSManagedObject subclass, clean project, delete the existing app with previous core data and rebuild the app.

I'm thinking that what if my app is v1.0 and available in AppStore, user download and use the app. After few months I added new entities in Core Data (app v2.0), and user need to update their app. Are they needed to delete and re-download the new version to avoid app crash?

I found out someone mentioned that "You can configure core data to look for, and accept extensions of your data model" but I don't know what it means. Here is the question.

Any suggestion?

4

1 回答 1

3

Here is the programming guide Core Data Model Versioning and Data Migration

于 2013-01-23T03:49:03.980 回答