Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build module 'AdyenPOS'; this SDK is not supported by the compiler (Xcode 16.2) #5

Open
DzmitryKudrashou opened this issue Feb 19, 2025 · 0 comments

Comments

@DzmitryKudrashou
Copy link

Describe the bug
If a developer uses an Xcode version that is different than the Xcode was used to compile AdyenPOS Xcode generates a compile time error. For example. the next error is from Xcode 16.2

Failed to build module this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)', while this compiler is 'Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)'). Please select a toolchain which matches the SDK.

To Reproduce
Steps to reproduce the behavior:

  1. Create an empty project with Xcode 16.2 (the latest version)
  2. Add a swift package package(url: "https://github.com/Adyen/adyen-pos-mobile-ios-test", branch: "main")
  3. Add import AdyenPOS to a swift file, for example it can be AppDelegate.swift
  4. Try to compile.
  5. See an error
Failed to build module this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)', while this compiler is 'Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)'). Please select a toolchain which matches the SDK.

Expected behavior
By the AdyenPOS manifest, any Xcode version that supports swift-tools-version:5.6 needs to have possibility to compile AdyenPOS without compile time errors. For swift-tools-version:5.6 it needs to be Xcode 15.0 - Xcode 16.2

Screenshots

Image

Desktop (please complete the following information):

  • OS: Mac
  • Version [15.3]
  • Xcode: 16.2

Smartphone (please complete the following information):

  • Device: [iPhone 16 pro]
  • OS: [iOS18.2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant