When I run Apple's Sample Code
Such as:
https://github.com/apple/sample-cloudkit-privatedb-sync
https://github.com/apple/sample-cloudkit-sharing
Xcode issues a bunch of warnings including:
Capture of 'savedRecord' with non-sendable type 'CKRecord' in a @Sendable closure
Non-sendable type '[CKRecordZone]' passed in implicitly asynchronous call to main actor-isolated function cannot cross actor boundary
Non-sendable type 'CKRecordZone' in asynchronous access to main actor-isolated property 'recordZone' cannot cross actor boundary
Can I rely on this sample code for how to do it for production apps or am I going to run into issues with data consistency, etc?
Aside from ignoring these warnings (or even hiding them), is there anything I can do about them?
Is there a better way to now use CoreData with Async/Await than what the Apple sample code is showing?
2
0
1.6k