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 'Quick'; this SDK is not supported by the compiler #1202

Open
1 task
z3frog opened this issue Mar 10, 2023 · 1 comment
Open
1 task

Comments

@z3frog
Copy link

z3frog commented Mar 10, 2023

  • I have read CONTRIBUTING and have done my best to follow them.

What did you do?

I've got a project with tests depending on Quick, and I'm building with XCode 14.2.

What did you expect to happen?

I can run my tests depending on Quick and it compiles flawlessly with XCode 14.2.

What actually happened instead?

I get this error:

Failed to build module 'Quick'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.7 (swiftlang-5.7.0.127.4 clang-1400.0.29.50)', while this compiler is 'Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)'). Please select a toolchain which matches the SDK.

Environment

List the software versions you're using:

  • Quick: v5.0.1
  • Nimble: v11.2.1
  • Xcode Version: 14.2
  • Swift Version: XCode Default (swift-driver version: 1.62.15 Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51))

Please also mention which package manager you used and its version. Delete the
other package managers in this list:

  • Carthage: 0.39.0

There are two options:

  1. I downgrade to XCode 14 / install additional Swift 5.7.0 toolchain from swift.org . Not user-friendly and not scalable to large projects
  2. Quick sets the BUILD_LIBRARY_FOR_DISTRIBUTION build setting on their framework target. See https://stackoverflow.com/questions/70556401/swift-version-conflict-this-sdk-is-not-supported-by-the-compiler-please-select
@mattxw
Copy link

mattxw commented Apr 2, 2023

  • If I remember correctly, you can fix this by simply delete Quick.xcframework and Nimble.xcframework and rebuild them.
  • There are usually another error beside the one you mentioned. Maybe you can provide those other error to this thread.

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

2 participants