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 for cordova projects located in paths with spaces #52

Merged
merged 1 commit into from
Mar 30, 2018

Conversation

TheLiquidSky
Copy link

We had an issue very similar to #47.

The shell execution of the cordova version script silently failed because the full path where our cordova project was located contained whitespaces (and other conflicting characters like '(' and '(' ). As a result, the promise returned by getPlatformVersionsFromFileSystem rejected and no changes to the xcode project were applied by this plugin. Wrapping the script command in quotation commands solved the problem for us.

@sublimator
Copy link

Bump!!

@sublimator
Copy link

Also, thank you @TheLiquidSky !

@akofman
Copy link
Owner

akofman commented Mar 30, 2018

Thanks @TheLiquidSky !
Now I remember that this part of code had been copy/paste from the Cordova sources: https://github.com/apache/cordova-lib/blob/7.0.x/cordova-lib/src/cordova/platform_metadata.js#L68-L85 for this PR.

@akofman akofman merged commit b769831 into akofman:master Mar 30, 2018
@sublimator
Copy link

Yay, thanks @akofman

@TheLiquidSky TheLiquidSky deleted the fix-spaces branch March 30, 2018 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants