Core data: Failed to load model

后端 未结 5 1459
渐次进展
渐次进展 2020-12-15 03:54

I am new to core data.

What I am trying to DO: I am trying to create a cocoatouch framework that has an app to add employee details and display them

5条回答
  •  别那么骄傲
    2020-12-15 04:19

    The string you pass to the NSPersistentContainer initializer:

    NSPersistentContainer(name: "CoreData")
    

    needs to match the filename of the data model file in your Xcode project:

    CoreData.xcdatamodeld
    

提交回复
热议问题