ios - How to fix the issue “Command /bin/sh failed with exit code 1” in my shell script phase -


building ios app using xcode, trying run shell script obfuscate project code. got following error while doing that.

warning: wipe not committed changes in repository
press ctrl-c cancel or enter proceed.

command /bin/sh failed exit code 1

how can fix problem?

based on warning text, script awaits user input proceed. since xcode runs headless , there no user input ever, killed eventually

looking @ script right:

# in case echo "warning: wipe not commited changes in repository" echo "press ctrl-c cancel or enter proceed." read 

solution issue posted:
either remove code (i would... script phase thats not imo)
or fake input shell script (see input within shell script)


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -