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

前端 未结 10 1881
感情败类
感情败类 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:33

    Grouchal's answer is perfect...but if you are still having the "Can't merge models with two different entities xxx" even after cleaning up the build several times...Your might have issues with how the managedObjectModel is being loaded...take at look at this one...which helped me fix it..

    core data migration problems

提交回复
热议问题