Error: CoreData: warning: Unable to load class with name '' for entity 'Receipt'. But the class is deleted

I created a subclass of NSManagedObject for my object, but after I delete it because I do not use it, I have the object specified in the xcdatamodeld file. And when I use this object, I now get this message in my console: CoreData: warning: Unable to load a class named '' for entity 'Receipt'. The class was not found; instead, the default NSManagedObject is used.

How can I completely remove this class so that Core Data no longer explores the class for my entity?

+5
source share
1 answer

Most likely, your model is trying to access the class.

Go to your XCDataModel and make sure that "all names" for all your objects are set to NSManagedObject .

+8
source

Source: https://habr.com/ru/post/1239582/


All Articles