What do I have to do to get Core Data to automatically migrate models?

前端 未结 10 1858
感情败类
感情败类 2020-11-27 09:14

I have read the documentation about automatic /lightweight migration for Core Data models - but I am having problems implementing it.

As I understand it the applicat

10条回答
  •  渐次进展
    2020-11-27 09:37

    Minor edit to @Grouchal's awesome instructions above for Xcode version 5:

    Old: 2. Select the Design Menu at the top - then Data Model - then choose Add Model Version

    Version 5+: 2. Select the Editor menu, then Add Model Version…, type your Version name and Based on model (select your original model from the list)

提交回复
热议问题