apple / apple/sample-cloudkit-queries

Non Sendable Types

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
121
Forks
10
PR merge metrics
No merged PRs in 30d

Description

When trying to run this code using Xcode 14.3 I get the following warnings:

-/sample-cloudkit-queries-main/Queries/ViewModel.swift:83:41 Non-sendable type '[CKRecord]' exiting main actor-isolated context in call to non-isolated instance method 'modifyRecords(saving:deleting:savePolicy:atomically:)' cannot cross actor boundary
- /sample-cloudkit-queries-main/Queries/ViewModel.swift:101:52 Non-sendable type 'CKQuery' exiting main actor-isolated context in call to non-isolated instance method 'records(matching:inZoneWith:desiredKeys:resultsLimit:)' cannot cross actor boundary
- /sample-cloudkit-queries-main/Queries/ViewModel.swift:153:32 Non-sendable type '[CKRecordZone]' exiting main actor-isolated context in call to non-isolated instance method 'modifyRecordZones(saving:deleting:)' cannot cross actor boundary

Until CKRecord, CKQuery and CKRecordZone are modified to be sendable, what can I do about these errors?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.