How to build a Swift 5.0.x app with IOS 13 SDK in Xcode 10.x?

I got this error when distributing my app "This app was built with the iOS 12.4 SDK. As of June 30, 2020, all apps for iPhone or iPad must be built with the iOS 13 SDK or later, included with Xcode 11 or later."

When I build the app with Xcode 11, I got this error "Module compiled with Swift 5.0.1 cannot be imported by the Swift 5.2.4 compiler:".

The framework binary is a licensed component and I dont have its source code to rebuild.

Given the lib has to stay with 5.0.1, is there a way to build and distribute an app with Swift 5.0.1 and iOS 13 SDK in XCode 10.x?

(I have tried the ToolChain in XCode11, it built successfully but App does not allow to distribute. It requires the default ToolChain which is Swift 5.2.)

Replies


is there a way to build and distribute an app with Swift 5.0.1 and iOS 13 SDK in XCode 10.x?

No.

SDKs and Swift versions are strongly coupled with the Xcode version.
If you want to use iOS 13 SDK, that means you need to use Xcode 11.x, or else your app would never be accepted.

Swift has announced its ABI-stability in Swift 5, so properly built binaries can be imported into Swift 5.1 or 5.2.
Better contact the publisher of the library and request an updated version of the binary, or give up using it.