Howto remove coredata from ios app

I have an IOS application who uses coredata

As I want to develop and App extension which needs to share coredata with my app(Yes, I made a group App), I thought a good solution would be to create a framework with the, coredata model.

I did it, but after that the coredata of the main app is no longer necessary. and I think I made a mistake when removing the file xcdatamodel from my app.

when I refer to an entity in the main application, it doesn't use the entity of the framework.

when I right click on an entity instance in my main application, I see a file which is: entity+CoreDataClass and of course I don't find it in the finder.

Did I made a mistake by simply remove the xcdatamodel from my App? Do I have something to clean?

Howto remove coredata from ios app
 
 
Q