Cannot create an NSPersistentStoreCoordinator with a nil model

前端 未结 27 1543
囚心锁ツ
囚心锁ツ 2021-01-30 03:33

Been having my first crack at Core Data and I\'m getting the following error when running my code on my device, but it works fine on the simulator..

*

27条回答
  •  感动是毒
    2021-01-30 04:05

    For me the problem was due to the fact that I copy pasted my model from a sandbox project to my actual project. Always make sure to generate your model from within the project that the model is being used.

提交回复
热议问题