apollographql / apollo-ios

📱  A strongly-typed, caching GraphQL client for iOS, written in Swift.
https://www.apollographql.com/docs/ios/
MIT License
3.89k stars 728 forks source link

Is Swift 5.9 required for Apollo 1.8.0? #3315

Closed bddq closed 10 months ago

bddq commented 10 months ago

Question

Hi,

I noticed you updated the required version of Swift to use Apollo on 1.8.0 version. Is Swift 5.9 really needed or can it be changed back to Swift 5.7 version to allow old versions of Xcode to use the package?

Regards, Benoit

calvincestari commented 10 months ago

Hi @bddq - yes it is required because the SPM plugin now declares the permission allowNetworkConnections(scope:reason:). It is that permission which requires SwiftPM 5.9+.

Is there any particular reason you need to use an older version of Xcode?

calvincestari commented 10 months ago

I just realized that the change to the plugin and the new requirement isn't included in the release notes - I'll update that now.

bddq commented 10 months ago

We are still using Xcode 14.2 to build some apps at work and we are blocked with Swift 5.7. I understand your answer.

Thanks!