Core Data - Default Migration ( Manual )

后端 未结 2 602
暗喜
暗喜 2020-12-15 10:52

i\'ve read all possible blogs and SO post on the subject - but still not sure what\'s going on. I\'ve also read this but still no luck - their guide to Default migration kin

2条回答
  •  醉酒成梦
    2020-12-15 11:39

    With the help i got from this question i got to solve your issue.

    I have put together a demo app based on the default master/detail template with core data. When run it first time, make sure you have the "TestData" model selected in "TestData.xcdatamodeld". Add some rows, then move to "TestData 2.xcdatamodel" and the migration will make the proper changes.

    The demo app can be downloaded from here

提交回复
热议问题