iphone Core Data Unresolved error while saving

后端 未结 7 1376
猫巷女王i
猫巷女王i 2020-11-30 16:33

I am getting a strange error message from the core data when trying to save but the problem that the error is not reproducible ( it appears at different times when doing dif

相关标签:
7条回答
  • 2020-11-30 17:04

    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.

    Edit:

    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.

    0 讨论(0)
提交回复
热议问题