In the \"Run Script\" build phase of my project, everything works if I type in the script into the text box for \"run script\" in build phases.
But to make editing /
Simple Steps:
<your_Script>.sh
via cd <Your_Path_To_.sh_File>
chmod +x <your_file>.sh
Thats it
Put /bin/sh
in front of the path to the script name.
/bin/sh /Users/superman/Documents/Projects/SomeProject/scriptname.sh
Just use
chmod u+x nameofscript.sh
Thats it .
You can simplify your Xcode project file a little further and not require the "bin/sh " in front of the script name.
To avoid this, you need to turn on "execute" permissions for users (Xcode in this case) of the file.
Steps
chmod 755 yourScriptName.sh