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 /
Put /bin/sh in front of the path to the script name.
/bin/sh
/bin/sh /Users/superman/Documents/Projects/SomeProject/scriptname.sh