Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GTMSessionFetcher min iOS version conflict #252

Closed
Innocuousjoe opened this issue Nov 5, 2022 · 2 comments
Closed

GTMSessionFetcher min iOS version conflict #252

Innocuousjoe opened this issue Nov 5, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@Innocuousjoe
Copy link

Describe the bug
Looks like GTMSessionFetcherCore bumped to a minimum iOS 10.0 today, which means that resolving package graph now breaks.

The package product 'GTMSessionFetcherCore' requires minimum platform version 10.0 for the iOS platform, but this target supports 9.0 (in target 'GoogleSignIn' from project 'GoogleSignIn')

and

The package product 'GTMSessionFetcherCore' requires minimum platform version 10.0 for the iOS platform, but this target supports 9.0 (in target 'GTMAppAuth' from project 'GTMAppAuth')

being the errors in question.

To Reproduce

  1. Have GoogleSignIn-iOS
  2. Attempt to resolve package graph on Bitrise

Expected behavior
It builds

@Innocuousjoe Innocuousjoe added bug Something isn't working triage Issues that need to be triaged labels Nov 5, 2022
@petea petea linked a pull request Nov 7, 2022 that will close this issue
@petea
Copy link
Contributor

petea commented Nov 8, 2022

With Friday's release of GTMSessionFetcher 2.2.0, we are seeing build failures when using Swift Package Manager (SPM) on Xcode 13 with this new version of GTMSessionFetcher. The failure is due to the iOS min version mismatch between both GoogleSignIn and GTMAppAuth (iOS 9) and GTMSessionFetcher 2.2.0 (iOS 10). Unlike CocoaPods, SPM is unable to resolve this conflict by installing an older version of GTMSessionFetcher (2.1.0) with compatible min versions.

Xcode 14 doesn't exhibit this behavior as it does not support building for iOS 9 and thereby sidesteps the issue.

@thomasvl is considering a patch release of GTMSessionFetcher reverting min iOS to 9 in order to address this problem.

In the meantime, a temporary workaround would be adding a GTMSessionFetcher package dependency to your project with an exact version rule of "2.1.0" in order to prevent SPM from pulling in 2.2.0.

@petea petea removed the triage Issues that need to be triaged label Nov 8, 2022
@petea petea changed the title Resolve Package Graph Failing on Bitrise GTMSessionFetcher min iOS version conflict Nov 8, 2022
@petea
Copy link
Contributor

petea commented Nov 8, 2022

This has now been addressed with the release of GTMSessionFetcher 2.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants