You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upgraded package to 1.2.1 but the CLI version wasn't increased so I get an error
Version
1.2.1
Steps to reproduce the behavior
Upgrade to 1.2.1
Try to run the CLI from SPM
Error because the CLI version is incorrect
Logs
Installing Apollo CLI SPM plugin
x apollo-ios-cli
Running Apollo code generation
Error: Error: Apollo Version Mismatch
We've detected that the version of the Apollo Codegen CLI does not match the version of theApollo library used in your project. This may lead to incompatible generated objects.Please update your version of the Codegen CLI by following the instructions at:https://www.apollographql.com/docs/ios/code-generation/codegen-cli/#installationCLI version: 1.12.0Apollo version: 1.12.1To ignore this error during code generation, use the argument: --ignore-version-mismatch.
Anything else?
No response
The text was updated successfully, but these errors were encountered:
I've got a PR up to fix this including a new CI job that will catch this and the 1.12.0 error too because it requires that the CLI archive can be extracted, executed and version matched. Unfortunately it'll only get merged once the rest of the team is able to review it in the morning.
Also this version check behaviour should not be needed for too much longer as @BobaFetters is working on having cocoapods installations download the CLI archive from the release instead of needing to use the embedded archive. Once that's done it would be trivial to fix this on the GitHub release and not require a new version release.
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo iOS usage and allow us to serve you better.
Summary
Upgraded package to 1.2.1 but the CLI version wasn't increased so I get an error
Version
1.2.1
Steps to reproduce the behavior
Logs
Anything else?
No response
The text was updated successfully, but these errors were encountered: