ReactiveX / RxSwift

Reactive Programming in Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Compiling for iOS 9.0, but module 'RxSwift' has a minimum deployment target of iOS 11.0

coffeeshopped opened this issue · comments

Short description of the issue:

I just updated to XCode 14.0.1, and my project now won't compile, with a single error stating "Error: Compiling for iOS 9.0, but module 'RxSwift' has a minimum deployment target of iOS 11.0".

I'm using Swift Package Manager for my RxSwift dependency, and using RxSwift 5.1.3. My project does indeed have a minimum target of iOS 9, and the Package.swift file seems to indicate a minimum target of iOS 8.

It seems like this could be an XCode bug, as I can't find where RxSwift is indicating anything about iOS 11 (I'm guessing iOS 11 is maybe some sort of XCode default minimum?), but I'm also wondering if maybe something changed in the Package spec that the old RxSwift version 5 isn't up-to-date with?

Expected outcome:

Successful compile.

What actually happens:

Build: Failed with 1 error

Platform/Environment

  • [ X] iOS

Xcode version:

14.0.1

I'm trying to debug this myself so far, and I think the error has to do with the fact that Apple is now marking iOS versions 8, 9, and 10 deprecated as SupportedPlatform's for Swift:

https://developer.apple.com/documentation/packagedescription/supportedplatform/iosversion

It seems this is by design for XCode 14:

https://developer.apple.com/documentation/xcode-release-notes/xcode-14-release-notes

"Building for deployment to OS releases older than macOS 10.13, iOS 11, tvOS 11, and watchOS 4 is no longer supported."