Where's the documented record method for NSPersistentCloudKitContainer?

I would need to access CKRecords of my NSManagedObjects on iOS 13.4 and there seems to be a documented method in NSPersistentCloudKitContainer, but the compiler can't see it! How this can be?


Compilation error:

https://vesacdn.s3.eu-north-1.amazonaws.com/compilation+error.png


Class definition seen by xcode 11.4.1:

https://vesacdn.s3.eu-north-1.amazonaws.com/NSPersistentCloudKitContainer.png


Documented:

https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainer

Replies

record(for:) expected an NSManagedObjectID, but you're passing in an NSManagedObject.
Please try record(for: managedObject.objectID).