Can no longer compile for iOS 9 after Xcode update

After updating to Xcode 14 I can no longer compile my app which targets iOS 9.3. Nothing in my source changed.

The build fails because my project depends on the Swift package https://github.com/Wevah/IDNA-Cocoa, that package specifically support iOS 9 as indicated in the Package.swift file:

platforms: [.macOS(.v10_11), .iOS(.v9), .tvOS(.v9), .watchOS(.v2)],

However, when I build my app it fails with the following error:

URL+Encode.swift:2:8: error build: Compiling for iOS 9.3, but module 'IDNA' has a minimum deployment target of iOS 11.0: <>/Build/Products/Debug-iphoneos/IDNA.swiftmodule/arm64-apple-ios.swiftmodule

Which doesn't make sense, as it doesn't have a minimum target of iOS 11, and this worked just fine moments ago on Xcode 13.

Removing the import and the app compiles just fine, even targeting iOS 9.

Is this a bug?

In the release notes of xCode 14 it is stated that it can only debug on iOS 11 and later. So it can not compile for iOS 10, 9 or previous. If you need iOS 9 supports, download earlier version of xCode from download section of Apple developer site.

Do you know how many of your users are using iOS 9? It can't be many, and it might be time to drop support for those older versions. (Unless, this is an enterprise app that must be supported?)

Can no longer compile for iOS 9 after Xcode update
 
 
Q