iphone Core Data Unresolved error while saving

It means there’s a mandatory property has been assigned nil. Either in your *.xcodatamodel check the “optional” box or when you are saving to the managedObjectContext make sure that your properties are filled in.

If you’re getting further errors after changing your code to suit the two requirements try cleaning your build and delete the application from your iPhone Simulator/iPhone device. Your model change may conflict with the old model implementation.


I almost forgot here’s all the error codes that Core Data spits out:
Core Data Constants Reference
I had trouble with this before and I realised I unchecked the correct optional box. Such trouble finding out the problem. Good luck.

Leave a Comment