I try to figure out if it's possible to share a users core data events in one app, to another user with CKShare and CKRecord.
I got the device sync up and running and can see the changes, also CloudKit dashboard has published the changes to production.
However, when I have my NSManagedObject that I got either local or from another device, I try to call the following:
let myEvent: // NSManagedObject from core data
let container: NSPersistentCloudKitContainer = AppDelegate.shared.container
let record = container.record(for myEvent.objectID // not working
// record is always nil
The receord is always nil, why?
And is is possible to later pass the CKRecord in a UICloudSharingController to share it to another user?