How to create the magic .xcdatamodeld folder / package?

后端 未结 2 1858
臣服心动
臣服心动 2020-12-14 11:09

Recently, I managed (by accident, don\'t ask) to delete my Core Data datamodel files and classes. And I was completely and utterly unable to create the files again to be exa

2条回答
  •  别那么骄傲
    2020-12-14 11:18

    During my development, I could not find Entities that I added later on. What worked for me:

    Uninstall the App EVERY TIME you change the Data Model!

    The Data Model is cached by Core Data between installs, to make sure the integrity stays in tact. Delete the App from the simulator / iPhone to be able to test your changes.

    PS: does anyone know how to do that automatically?

提交回复
热议问题