ITADN

Xcode26 release building fails while debug compilation works (swift6 and concurrency enabled) (SPM)

#8805Openadina-abduraman 创建于 2025-11-20
T-BugO-CommunitySDK-Use:LocalFrequency:AlwaysRepro:AlwaysEncryption:On
A
adina-abduramancommented
### How frequently does the bug occur? Always ### Description Hi guys, We are using RealmSwift via SPM 20.0.3 in our project which is configured to use Swift6 and Complete concurrency enabled. When compiling in debug mode, all good. Issue appears when building in release mode due to RealmObjects that we mark as @unchecked Sendable. We know it's not the recommended way to use them like this, but we had no issues when compiling with xCode16 and Swift6 before and we don 't want to refactor the code right now. error: conformance of 'RLMObjectBase' to 'Sendable' is unavailable note: conformance of 'RLMObjectBase' to 'Sendable' has been explicitly marked unavailable here @_nonSendable(_assumed)". Question is why debug (optimization -0none) works, and what can we do so it also works in release mode (optimization -0), so we bypass the sendable checks? ### Stacktrace & log output ```shell error: conformance of 'RLMObjectBase' to 'Sendable' is unavailable note: conformance of 'RLMObjectBase' to 'Sendable' has been explicitly marked unavailable here @_nonSendable(_assumed)". ``` ### Can you reproduce the bug? Always ### Reproduction Steps _No response_ ### Version 20.0.3 ### What Atlas Services are you using? Local Database only ### Are you using encryption? Yes ### Platform OS and version(s) ios26 ### Build environment Xcode version: 26 Dependency manager and version: SPM
1 条评论