CoreData migration issue when attribute name changes

I need to change the name of an object attribute in the coredata ios file. I want to port it easily without crashing. I tried a lot by referring to the migration tutorial, but the application is immediately submitted with an error.

+3


source to share


2 answers


Try this link you can find demo here ( http://www.raywenderlich.com/86136/lightweight-migrations-core-data-tutorial )



+1


source


Here is a list of the steps you should follow.

Step - 1

Step - 2

Then make the necessary changes to your new model (example 2).



Step - 3

Step - 4

Select the current version of the model -

Step - 5

+1


source







All Articles