Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I've created a subclass of NSManagedObject for my entity, but after I've deleted it because I don't use it, I just have the entity specified in my xcdatamodeld file. And when I use this entity, I now get this message in my console : CoreData: warning: Unable to load class named '' for entity 'Receipt'. Class not found, using default NSManagedObject instead. !

How can I completely delete this class so that Core Data do not more research a class for my entity ?

like image 795
testa abalez Avatar asked Mar 14 '23 18:03

testa abalez


1 Answers

You most likely still have your model trying to access the class.

Go into your XCDataModel and make sure the "classname" for all of your entities is set to NSManagedObject.

like image 96
Marcus S. Zarra Avatar answered Mar 16 '23 07:03

Marcus S. Zarra