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

Fix Apollo Build Step script because it fails when Schemes have space in their names #387

Closed
wants to merge 2 commits into from

Conversation

Valpertui
Copy link
Contributor

When there is spaces in any path of the FRAMEWORK_SEARCH_PATHS, the find command fails.
Having a scheme with a space in its name will cause FRAMEWORK_SEARCH_PATHS to have spaces in each path.

This edit changes the find separation character to \n from through IFS and fixes the FRAMEWORK_SEARCH_PATHS to include double quotes on its first path (which is without double quotes even if it has a space in the path). Not adding the double quotes also breaks find when it reads a path with a space if IFS is set

  • blocking
  • docs

…s in their names

When there is spaces in any path of the FRAMEWORK_SEARCH_PATHS, the `find` command fails.
Having a scheme with a space in its name will cause FRAMEWORK_SEARCH_PATHS to have spaces in each path.

This edit changes the `find` separation character to `\n` from ` ` through `IFS` and fixes the FRAMEWORK_SEARCH_PATHS to include double quotes on its first path (which is without double quotes even if it has a space in the path). Not adding the double quotes also breaks `find` when it reads a path with a space if `IFS` is set
@apollo-cla
Copy link

@Valpertui: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/

@ghost ghost added blocking Prevents production or dev due to perf, bug, build error, etc.. docs Focuses on documentation changes labels Oct 17, 2018
@Valpertui
Copy link
Contributor Author

It's also a fix for this issue #225

@ricsantos
Copy link

Would be good to get this merged, @Valpertui thanks for making it, can you sign the agreement so the Apollo team can merge it?

@Valpertui
Copy link
Contributor Author

@ricsantos I did sign it back in october, but I signed it again today.

@designatednerd
Copy link
Contributor

I'm going to close this one out in favor of #610 - there was some stuff that also needed to be fixed in the docs and with CocoaPods, but your work on that command to get everything working fine with spaces in project and scheme names was super-helpful with that. Thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocking Prevents production or dev due to perf, bug, build error, etc.. docs Focuses on documentation changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants