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

shelljs run xcodebuild error #749

Closed
gurisxie opened this issue Jun 22, 2017 · 1 comment
Closed

shelljs run xcodebuild error #749

gurisxie opened this issue Jun 22, 2017 · 1 comment

Comments

@gurisxie
Copy link

Node version (or tell us if you're using electron or some other framework):

v6.9.2

ShellJS version (the most recent version/Github branch you see the bug on):

"version": "0.7.8"

Operating system:

mac 10.12.5 (16F73)

Description of the bug:

when i use shelljs to run xcodebuild,error,see pic;
but run terminal directly,its ok,see pic
hope help~~~

Example ShellJS command to reproduce the error:

var sh = 'source /etc/profile; source ~/.bash_profile; ' +
        'cd "' + projectPath + '"; ' +
        'xcodebuild -scheme Taobao4iPhone SYMROOT="' +
        appBuildPath +
        '" -destination "name=iPhone 6" -workspace Taobao4iPhone.xcworkspace ' +
        '-configuration Release clean build'
        shell.echo(sh);
    shell.exec(sh, { async: false, maxBuffer: 200 * 1024 * 1024 });

image
image

@gurisxie
Copy link
Author

I have found the reason,if we use shelljs,we should promise that, the project which using xcodebuild need use short path.

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

No branches or pull requests

1 participant