-
Notifications
You must be signed in to change notification settings - Fork 734
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
Circular reference Build Error #3375
Comments
Hi @grebleem, thanks for creating the issue. From that error it looks like there is an interface named "Interface". So I pulled the sorare GraphQL schema to confirm and yes that does indeed seem to be the cause of the error.
I would have thought we had this name covered with our reserved names logic but it looks like this one might have slipped through. We'll get it resolved asap and hopefully included in the next release. |
Thank you for the feedback. As a temporary fix I renamed |
I just realized this can easily be fixed by changing the generated code to namespace It should be generated as: public extension Interfaces {
static let Interface = ApolloAPI.Interface(name: "Interface")
} |
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. |
Version 1.11.0 is being released shortly. It will include the fix for this issue. |
Really useful tip! Thanks!!! |
Summary
After updating the schema from Sorare: https://api.sorare.com/federation/graphql and running the `apollo-ios-cli generate', without any error, Xcode generates the flowing build errors:
Perhaps it is an error in the schema from Sorare, but I am unable to resolve this issue, perhaps it is a bug in Apollo-iOS.
Any ideas?
Version
1.10.0
Steps to reproduce the behavior
Cleaning the build and delete the derived data folder did not resolve the issue.
Logs
Anything else?
No response
The text was updated successfully, but these errors were encountered: