Core Data migration of attribute from String to Integer 16

前端 未结 2 1232
执念已碎
执念已碎 2020-12-23 15:06

I\'m having trouble migrating a store entity attribute from String to Integer 16. Here are the steps I take:

  1. Add Model Version...
  2. In the new model, ch
2条回答
  •  旧时难觅i
    2020-12-23 15:42

    For those, who broked thousands of spears on "Can't find mapping model for migration" error, this might help:

    1. Make sure, you created mapping file in proper folder/group (before pressing Cmd+N - select .xcdatamodeld file in project navigator).
    2. Clean the project.
    3. Rebuild the project and run.

    In my case, app automagically found the mapping model after clean/rebuild =\

提交回复
热议问题