Post

Replies

Boosts

Views

Activity

Reply to NSPersistentCloudKitContainer Bug
I wanted to follow up on this statement in my first post for any other readers: "the root NSManagedObject's record is not being updated with the relationship linkage to the shared record." I figured out later that this is because there are 2 different ways to do shares: you share Records or Zones. The new share functionality in NSPersistentCloudKitContainer appears to be creating full Zone shares unlike the code documented on CKShare. When the Zone share is made there are no relationships created on the records in the zone because they are all made available to the Participants. In terms of the bug with local ckshare being updated, that is still an issue. I haven't tested the suggestion by Fat Xu yet and in the meantime I had to query CloudKit directly (not thru NSPersistentCloudKitContainer) for the most recent ckshare records.
Sep ’21