3

I need to change my attribute name of entity in coredata ios. I want lightweight migration of it without crash. I have tried lot by referring migration tutorial but app directly goes crash.

Yagnesh Dobariya
  • 2,241
  • 19
  • 29

2 Answers2

1

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

Sachin Patil
  • 353
  • 1
  • 13
1

Here is the list of step you have to follow.

Step - 1

Step - 2

After this make required changes into your new model(Example 2).

Step - 3

Step - 4

Select your current model version -

Step - 5

Vijay Masiwal
  • 1,153
  • 8
  • 12
  • 1
    Good , but you haven't made the key point which is to how to map the old name of the property onto the new one. There is a possibility OP needs a mapping model in this case. – Warren Burton May 26 '15 at 07:23
  • @Vijay Masiwal, thanks for your kind of interest, i have follow this all things but my exact issue is that how to map old attribute name with new name. Still application going to crash. – Yagnesh Dobariya May 26 '15 at 07:49
  • @Warren Burton Still i am looking for solution. Is there any possibility? – Yagnesh Dobariya Oct 28 '16 at 05:17