Skip to content

Swift 6 strict concurrency: new Sendability mismatch in AdaptyUIBuilderLogic.makePurchase(...) #148

@derkachev19

Description

@derkachev19

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:

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.

Image

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

  1. cd <reproFolder>
  2. mise install
  3. tuist install
  4. tuist generate
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions