“Must have an entity”
Playing around with CoreData today, I started to get the following error message:
2010-05-09 10:27:28.568 Climb_It[2330:207] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘executeFetchRequest:error: A fetch request must have an entity.’
This was being thrown as a result of some initialization code in my AscentMethod class, and everything in the code looked good to me.
Turns out the issue was a naming problem. In the .xcdatamodel file I’d named the entity “ascentMethod” instead of “AscentMethod”.
Name changed, problem solved.