could not locate an NSManagedObjectModel for entity name

前端 未结 7 2537
[愿得一人]
[愿得一人] 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:27

    The Apple docs give some good information on debugging the error entityForName: could not locate an NSManagedObjectModel for entity name 'Foo'.

    Look at this section of the Core Data Programming Guide.

提交回复
热议问题