Core-Data iPhone: could not locate an NSManagedObjectModel

后端 未结 4 1466
执念已碎
执念已碎 2020-11-29 23:53

I am using Apple\'s CoreDataBooks sample project as a learning aid for core data.

I modified the app so that when the app loads I show a menu page first - not the B

4条回答
  •  独厮守ぢ
    2020-11-30 00:19

    During my development, I could not find Entities that I added later on. What worked for me: (Basically a sanity-tip :-)

    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?

提交回复
热议问题