I am currently receiving an error of -
* Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '+entityForName: could not locate an NSManagedObjectModel for entity name 'Invoices''
How this came about:
I set up an Entity and Attributes called 'Friends'. I am successfully using Fetch Request to get and display the data I want. The next stage of development for me was to add another Entity called 'Invoices' with various attributes. I added this to the datamodel and added a new fetch request to reflect this.
I have tried to reset the iPhone simulator, and added a new version, changed current version, and changed back to try and clear the error, but no joy.
The app crashes when it gets to this line of code:
NSEntityDescription *entity = [NSEntityDescription entityForName:@"Invoices" inManagedObjectContext:self.managedObjectContext];
[fetchRequest setEntity:entity];
Any suggestions?