Error this SDK is not supported by the compiler - Xcode version 16.2 (16C5032a) to 16.3(16E140)

In Xcode version 16.2 (16C5032a) I created:

One [ScenekitApp] [File/New/Project/iOS/Game/Game Technology: SceneKit].

Three custom Frameworks [File/New/Project/iOS/Framework] [ASCSource.framework, ASCCommon.framework and ASCCoreData.framework].

In the four projects the [Minimum Deployments=iOS 15.0], [Swift version=6.0] and [BUILD_LIBRARY_FOR_DISTRIBUTION=Yes].

I directly installed the [Zip.framework] in [ASCSource.framework] without [pod init/pod install] and in the [General tab] [Frameworks, Libraries and Embeded Content] [Zip.framework Embed&Sign].

I installed the three frameworks [ASCSource.framework, ASCCommon.framework and ASCCoreData.framework] in [ScenekitApp] and everything works perfectly in Xcode version 16.2(16C5032a).

I updated Xcode version 16.2(16C5032a) to Xcode version 16.3(16E140) and some errors in the SDKs were indicated.

[Failed to build module 'ASCSource'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)', while this compiler is 'Apple Swift version 6.1 effective-5.10 (swiftlang-6.1.0.110.21 clang-1700.0.13.3)'). Please select a toolchain which matches the SDK].

[Failed to build module 'Zip'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)', while this compiler is 'Apple Swift version 6.1 effective-5.10 (swiftlang-6.1.0.110.21 clang-1700.0.13.3)'). Please select a toolchain which matches the SDK].

If I recompile all frameworks in Xcode version 16.3 (16E140) it will work, but I don't think it will be a good solution.

I found some discussions in links like the following without success.

https://github.com/firebase/firebase-ios-sdk/issues/13727

https://stackoverflow.com/questions/70556401/swift-version-conflict-this-sdk-is-not-supported-by-the-compiler-please-select

Any help is welcome.

Thanks everyone!!!

Answered by Graphics and Games Engineer in 833632022

This is expected behavior for frameworks that are not compiled with ABI resilience enabled. Resilience interferes with cross-module optimizations, so it is not enabled by default.

Accepted Answer

This is expected behavior for frameworks that are not compiled with ABI resilience enabled. Resilience interferes with cross-module optimizations, so it is not enabled by default.

Okay,

The framework that is presenting the ABI (Application Binary Interface) problem was developed in Swift by third parties and I do not have access to the source code, in which case it would be better to use a framework made in Objective-C that does the same thing and does not have such problems.

The software that I distribute (ASCII Scene Create) is intended to create functional projects for Xcode 16.2 (16C5032a) and newer versions for customers who use the Scenekit framework in the Swift programming language, integrating with Autodesk 3ds Max.

The project created for customers contains the files (.xcodeproj .xcdatamodeld .framework .xcassets .scnassets .storyboard .swift), so I cannot compromise my customers with ABI (Application Binary Interface) problems.

If you want to know more about (ASCII Scene Create) and what I have specifically detailed, click here.

https://www.youtube.com/playlist?list=PLiMdz9WYDBhRCOtEpeH9mOaFehfuTavf2.

Swift is a powerful programming language, but it still has many issues, including .frameworks. In Objective-C, .frameworks present far fewer portability issues between Xcode versions.

Thank you!!!

Error this SDK is not supported by the compiler - Xcode version 16.2 (16C5032a) to 16.3(16E140)
 
 
Q