-
Notifications
You must be signed in to change notification settings - Fork 739
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
Disallow a target name of apollo
when using a module type of embeddedInTarget(name:)
#2958
Comments
Hi @moopoints, apologies for taking a while to get back to you. Thanks for attaching a sample project, it's certainly helpful to be able to take a closer look at these sorts of issues that way. There's a couple issues with the way the Xcode project is set up that is causing this:
Here's an archive of the project that builds with git history so you can see the changes - link |
Yes, that seems like a good idea. Thanks for taking a look at this @calvincestari |
Appreciate it @calvincestari.
Is there a trick to how you're adding these files to make sure they're added to the compile sources and how do you recommend handling this each time one regenerates the files after updating queries? |
No, nothing special in how they're added to the project: right-click on the project folder that I want them added to, select "Add files to ...", select the folder to be added, and ensure that the correct target is selected (this is what adds them to the "Compile Sources" build phase).
This is where careful selection of the
|
apollo
when using a module type of embeddedInTarget(name:)
I'm reopening this issue and have renamed it to better reflect the work to be done, which is resolving point 2 in this comment.
The work involved is probably where we validate |
@BobaFetters this is an issue to dip your feet into some parts of the codegen engine, if it's something that interests you. |
- Added new code gen error for `targetNameConflict` - Added new `SwiftKeywords` static set for `DisallowedEmbeddedTargetNames` - Updated `validate` function in `ApolloCodegen` to check for disallowed target names
Summary
I'm running into the same issue as previously reported here:
The suggestion offered by Calvin in issue #2859 isn't working for me - the SchemaNamespace isn't accessible either.
Environment
Version
1.1.2
Steps to reproduce the behavior
Here is a link to a sample project very closely following the setup instructions provided here.
Logs
No response
Anything else?
https://share.cleanshot.com/WZ52Fdkw
Tasks
The text was updated successfully, but these errors were encountered: