This problem occurred after adding the unique key i.es Constraint.
Frequently updating a Meeting control object removes an event-driven object that is one-to-one from the meeting managed object.
CoreData error: annotation: fixing a missing distribution spread to map to-manyList relationships on object 0x60c0009c4d0 (0x60c000621e40) with bad error 0x60800009ac20 (0x60800023a360)
Data model
I have three objects in my underlying i.es data model
(CDEvent, CDMeeting, CDMLCheckin) .
Entity properties and relationships, as described below:
Relationship 
Properties: CDEvent
CDMeeting 
CDMLCheckin 
Unique limitation:
- The CDEvent object has eventUUID as a unique constraint.
- The CDMeeting object has meetingUUID as a unique constraint.
Relationship
- CDEvent โ> CDMeeting
- From CDEvent to CDMeeting , a many-to-many relationship with a cascade of deletion rules, feedback from CDMeeting with CDEvent is one thing with canceling the deletion rule.
- CDEvent โ> CDMLCheckin
- From CDEvent to CDMLCheckin , a many-to-many relationship with a cascade of deletion rules, feedback from CDMLCheckin on CDEvent is one, with the deletion rule being canceled.
Full description: https://docs.google.com/document/d/1y2DQhBBLqjAP9eWbx5YpQhH7oVigxT_mcJDnPLlOMtQ/edit?usp=sharing
Note
- If I remove Unique Constraint eventUUID from CDEvent , everything works fine.
Please help us here, as we are amazed after more than a week :(
ios objective-c ios9 core-data unique-constraint
Iamanil
source share