ckshare

Share Core Data between users with NSPersistentCloudKitContainer

给你一囗甜甜゛ 提交于 2020-07-18 05:40:30
问题 Apple introduced the NSPersistentCloudKitContainer with iOS13 which enable us to use CloudKit with Core Data. I got it working pretty much instantly on different devices but my main issue is still left. Is it possible to share the data in an easy way with other users? I've been reading on CKShare but don't see how I can go from NSPersistentCloudKitContainer to that in an easy way. 回答1: There are methods on NSPersistentCloudKitContainer for accessing the underlying cloudkit records: https:/

CloudKit CKShare userDidAcceptCloudKitShareWith Never Fires on Mac App

只愿长相守 提交于 2019-12-08 03:43:22
问题 I am working on accepting a CKShare in a macOS app in Swift 4. I've already done all the following: Create the CKShare and save it with its rootRecord to CloudKit Add a participant ( CKShare.Participant ) I've confirmed that the CKShare is on the CloudKit server and that the person I invited has access to it. Here's a screenshot: https://d.pr/i/0sMFQq When I click the share link associated with the CKShare , it opens my app, but nothing happens and userDidAcceptCloudKitShareWith doesn't fire.