If you mean "can I change my xcdatamodel and just merge the changes from the generated code into my existing code for the derived NSManagedObject classes," yes, it's simple. You simply generate code for models that have changed, and then merge the changes manually into these specific derived classes. Since the changes sound like they are just additional attributes and relationships, this should be trivial - in fact, you can use diff and patch to do this semi-automatically if your changes are really additive in nature.
However, if you mean that you need to transfer the existing store to a new scheme, you have some work ahead. There are certain conditions (adding orthogonal objects, extracted properties, etc.) that will not force you to do this. You will understand what you need or not when you try to add existing persistent storage to the permanent storage coordinator for your managed entity context.
Before you decide to start changing the schema, you should always read how to do migrations and version control in Core Data - if you have existing stores that you need to save. This is almost certainly the case in applications that store user data stored in Core Data repositories. And if you don't have an automated utility to import or create a data warehouse, your existing static stores also probably need to be migrated.
groundhog
source share