Module stability in Xcode 14?

We have a binary framework built with Xcode 13.0 with module stability (BUILD_LIBRARY_FOR_DISTRIBUTION) enabled.

As such, the framework can be used on all versions of Xcode 13.x.

When using the same binary framework in Xcode 14.0 beta (14A5228q), we get the following error and the app doesn't compile:

Failed to build module 'OurFramework'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)', while this compiler is 'Apple Swift version 5.7 (swiftlang-5.7.0.113.202 clang-1400.0.16.2)'). Please select a toolchain which matches the SDK.

Is there a change to how module stability works in Xcode 14, or is this a temporary limitation (or bug) in Xcode 14.0 beta that will be addressed in future updates?

Please file a bug report through Feedback Assistant, including a sample project that imports your framework, and then post the FB number here.

Same issue here

Having the same(similar) issue: the SDK is build with Xcode14 but for is failed to build on Xcode 13.

"Failed to build module 'OURSDK'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.7 (swiftlang-5.7.0.120.1 clang-1400.0.28.1)', while this compiler is 'Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)'). Please select a toolchain which matches the SDK

The module stability is from 5.1 so there should not be an issue

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.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)').

Any solution for above issues ?

I am having the same issue. I built my binary framework using Xcode 13 (Swift version 5.5) and deployed it with CocoaPods. Then, I tried to use my framework in another app opened with Xcode 14 (Swift version 5.7). When I press the build button, it fails to build my app with the below error.

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

Is it fixed in a recent Xcode version? If not, is there any workaround?

Module stability in Xcode 14?
 
 
Q