could not locate an NSManagedObjectModel for entity name

前端 未结 7 2517
[愿得一人]
[愿得一人] 2020-12-18 19:15

This is the code for toggleAddProject method, the Core Data code is almost the same as found in Apple\'s CoreDataBooks sample, however when I click the add button the app cr

7条回答
  •  旧巷少年郎
    2020-12-18 19:31

    Use the debugger and confirm that your model is not nil. That is the most common cause of this error. If it is not nil then look for a typo in the entity name.

提交回复
热议问题