CoreData error: +entityForName: could not locate an NSManagedObjectModel for entity name

后端 未结 6 617
失恋的感觉
失恋的感觉 2021-01-02 09:06

I\'ve been struggling with CoreData for a few days, but I keep getting this error:

\'NSInternalInconsistencyException\', reason: \'+enti

6条回答
  •  一生所求
    2021-01-02 09:20

    If you're editing a framework and running a unit test to get the error, make sure your xcdatamodeld file is added to the test target. Frameworks behave differently than normal projects.

提交回复
热议问题