Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (19 sloc) 1.203 kB

Problems with CORE DATA xcode 4.5.1 I am having trouble getting to understand CoreData. I had something like this working a couple weeks ago, but No luck now. So, WHat I did was start with an "Empty Application" I added CORE DATA and ARC Once setup, I added Storyboard.storyboard and Model.xcdatamodeld

I also added 2 UIViewCOntrollers to story Board, as well as a NSNavigation controller.

running the app works until I get to the STEP01 page. The whole app crashes on the button StartImport. step01VC.m

  • (IBAction)btAddData:(UIButton *)sender

In the code, I marked what is specifically crashing.

All I am trying to do is append a record to the DataStore. I have hacked everything out of the application.

//******************   this is where the crash is happeneing... *******************
//----  the issue is Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+entityForName: nil is not a legal NSManagedObjectContext parameter searching for entity name 'Entity01''

 NSManagedObject *newENTITY01 =[NSEntityDescription insertNewObjectForEntityForName:@"Entity01" inManagedObjectContext:context]; 

I would apprecaite if someone could take a look.

Jump to Line
Something went wrong with that request. Please try again.