You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just follow use-realm-with-actors document, and add this code in Xcode 16.1, Swift 6 in my package.
actorRealmActor{
// An implicitly-unwrapped optional is used here to let us pass `self` to
// `Realm(actor:)` within `init`
varrealm:Realm!init()asyncthrows{
realm =tryawaitRealm(actor:self)}}
and then there is a error: Non-sendable type 'Realm' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary.
How frequently does the bug occur?
Always
Description
I just follow use-realm-with-actors document, and add this code in Xcode 16.1, Swift 6 in my package.
and then there is a error:
Non-sendable type 'Realm' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
.And my package settings is like this:
Stacktrace & log output
Can you reproduce the bug?
Always
Reproduction Steps
No response
Version
20.0.1
What Atlas Services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
iOS 18.0
Build environment
Xcode version: 16.1
The text was updated successfully, but these errors were encountered: