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

Generate Apollo GraphQL API script fails for project not using CocoaPods #619

Closed
gabrielvincent opened this issue Jul 11, 2019 · 1 comment
Labels
build-issue Issues occurring when attempting to build docs Focuses on documentation changes

Comments

@gabrielvincent
Copy link

The Run Script Phase necessary to compile the schema.json file and generate the API.swift file fails with the error:


Couldn't find Apollo.framework in FRAMEWORK_SEARCH_PATHS; make sure to add the framework to your project.

I found that there is an extra space in the script that makes it fail. After removing the space, the build happens successfully:

This:

APOLLO_FRAMEWORK_PATH ="$(eval find ${QUOTED_FRAMEWORK_SEARCH_PATHS} -name "Apollo.framework" -maxdepth 1)"

Has to be changed to:

APOLLO_FRAMEWORK_PATH="$(eval find ${QUOTED_FRAMEWORK_SEARCH_PATHS} -name "Apollo.framework" -maxdepth 1)"
@designatednerd
Copy link
Contributor

🤦‍♀️🤦‍♀️🤦‍♀️🤦‍♀️🤦‍♀️

Have I mentioned recently I suck at bash? Oh wait, yes I have!

I'll fix this in my open docs PR, good catch.

@designatednerd designatednerd added build-issue Issues occurring when attempting to build docs Focuses on documentation changes labels Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-issue Issues occurring when attempting to build docs Focuses on documentation changes
Projects
None yet
Development

No branches or pull requests

2 participants