Skip to content

shelljs run xcodebuild error #749

@gurisxie

Description

@gurisxie

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions