-
Notifications
You must be signed in to change notification settings - Fork 50
Description
Description
Summary
After upgrading my toolchain to Xcode 26.2 and Tuist 4.138.0, I started seeing the following compilation error. I’m not sure whether Tuist affects this, but the failure happens during Swift compilation (strict concurrency / Sendability).
Two related Swift 6 / concurrency issues were previously discussed here:
- v3.3.1 Doesn't compile on Xcode 16.0 #106
- Call to main actor-isolated initializer 'init()' in a synchronous nonisolated context #124
Those were addressed / had workarounds (e.g. compiling some targets in Swift 6 mode). However, now I’m seeing a third error and the previous workaround is no longer sufficient.
I prepared a minimal repro project.
Demo project
https://github.com/derkachev19/Adapty-build-issue
Environment
- Xcode: 26.2
- Swift compiler: 6.2.3 (swift-driver 1.127.14.1, swiftlang-6.2.3.3.21 clang-1700.6.3.2)
- Swift tools version: 5.9 (from
// swift-tools-version: 5.9) - iOS deployment target: 17.0
- Dependency manager: SwiftPM (workspace generated by Tuist)
- Tuist: 4.138.0
- AdaptySDK-iOS: 3.15.0 (pinned)
- Affected products:
Adapty+AdaptyUI
Steps to reproduce
cd <reproFolder>mise installtuist installtuist generate- Build the ExampleApp
✅ Expected: the project builds successfully.
❌ Actual: the project does not build - compilation fails with a Swift strict concurrency / Sendability error (see the error message/screenshot above).
Adapty SDK Version
3.15.0
SDK installation method
Swift Package Manager
Xcode Project Swift Version
5.9
Xcode Version
26.2
iOS Version
26.2
Device Type(s)
Both