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
In Swift6 mode, I must make the object thread safe, so make it conform to Sendable.
and then there are 2 errors:
'Sendable' class 'ItemGroup' cannot inherit from another class other than 'NSObject'
Stored property '__id' of 'Sendable'-conforming class 'ItemGroup' is mutable
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)}}
the error is 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 create a Realm Object Model in package like this:
In Swift6 mode, I must make the object thread safe, so make it conform to
Sendable
.and then there are 2 errors:
The 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: