I'm running into a strange case with setting the new 'parent' reference on a CKRecord. If the parent record is saved as part of the same CKModifyRecordsOperation, it works fine ... but if the parent record was saved in a different CKModifyRecordsOperation (and dependancies were set to make sure that the parent record is saved first before the other records are sent to CloudKit), then I get timeouts such as this:
2016-06-26 23:42:58.365038 TestCreatePrivateZoneOnCloudKit[1916:516778] [LogFacilityCK] Got a connection error for operation <private>: <private>
2016-06-26 23:42:58.365386 TestCreatePrivateZoneOnCloudKit[1916:516778] modify records error = Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.cloudd" UserInfo={NSDebugDescription=connection to service named com.apple.cloudd}
If I remove the 'record.parent' reference in this 2nd case, the timeouts go away.
Anyone having similar issues? The architecture of my app is such that I need to save the parent record in an operation first before I can upload other records.