Been having my first crack at Core Data and I\'m getting the following error when running my code on my device, but it works fine on the simulator..
*
I solve the problem without changing any code.
I add the ModelName.xcdatamodeld through File->Add File instead of dragging the file into the Xcode.
NSString *path=@"ModelName";
NSURL *modelURL = [NSURL fileURLWithPath:[path stringByAppendingPathExtension:@"momd"]];
model = [[NSManagedObjectModel alloc] initWithContentsOfURL:modelURL];