apollo-ios: 1.18.0 - Missing argument for parameter 'implementingObjects'

Summary

I have compilation error with the latest SDK version (1.18.0) for Interface - No issue with the 1.17.0 version

Image

Version

1.18.0

Steps to reproduce the behavior

just try to compile generated files

Logs


Anything else?

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

That’s good to know tbh we never knew this and assumed there would be source comparability between generated code and major versions of Apollo client.

We also adopted Apollo for iOS from version 0.7.0 which had constant breaking changes so we were not in a position to setup scripts and automatic as it was too unstable between updates.

Might be we have to fix versions in SPM for now but will take a look at your recommended and discussions around this. That’s very help. Thank you.

Cameron.

On Thu, 27 Feb 2025 at 16:37, Zach FettersMoore @.***> wrote:

There are definitely some things that would be nice to have in SPM, like being able to run a script etc when a package updates, unfortunately that’s not available, however other users have built SPM plugins to run codegen like running a build phase in Xcode, there is some discussion around that here https://github.com/apollographql/apollo-ios/issues/3267. We do have open issue for building more official support for this but the features and work necessary to do that aren’t currently high on our priority list. Depending on your workflow a build plugin may or may not be ideal, there are different ways this can be handled though, and can also depend on if you are using the CLI tool for codegen or scripting the codegen in Swift.

The root of things though like I mentioned is the generated code need to match the version of apollo-ios in use, it is possible that mismatched versions could function correctly, but its highly dependent on changes that may happen in either library that could be invisible to the user but still affect overall functionality.

— Reply to this email directly, view it on GitHub https://github.com/apollographql/apollo-ios/issues/3515#issuecomment-2688505679, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEZ6SNJ63PZG77M52Y6VJ32R45LLAVCNFSM6AAAAABXOXDWOOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOBYGUYDKNRXHE . You are receiving this because you were mentioned.Message ID: @.***> [image: BobaFetters]BobaFetters left a comment (apollographql/apollo-ios#3515) https://github.com/apollographql/apollo-ios/issues/3515#issuecomment-2688505679

There are definitely some things that would be nice to have in SPM, like being able to run a script etc when a package updates, unfortunately that’s not available, however other users have built SPM plugins to run codegen like running a build phase in Xcode, there is some discussion around that here https://github.com/apollographql/apollo-ios/issues/3267. We do have open issue for building more official support for this but the features and work necessary to do that aren’t currently high on our priority list. Depending on your workflow a build plugin may or may not be ideal, there are different ways this can be handled though, and can also depend on if you are using the CLI tool for codegen or scripting the codegen in Swift.

The root of things though like I mentioned is the generated code need to match the version of apollo-ios in use, it is possible that mismatched versions could function correctly, but its highly dependent on changes that may happen in either library that could be invisible to the user but still affect overall functionality.

— Reply to this email directly, view it on GitHub https://github.com/apollographql/apollo-ios/issues/3515#issuecomment-2688505679, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEZ6SNJ63PZG77M52Y6VJ32R45LLAVCNFSM6AAAAABXOXDWOOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOBYGUYDKNRXHE . You are receiving this because you were mentioned.Message ID: @.***>

Oops, I thought I’d done it but it looks like my CLI hasn’t been updated correctly Now the generated files are modified and the code compiles! Sorry 😃