$SRCROOT not recognized in shell script attached to XCode project $SRCROOT not recognized in shell script attached to XCode project shell shell

$SRCROOT not recognized in shell script attached to XCode project


Turns out this was my fault. The script was actually not being called at all. In XCode I was referring to the path of the script using...

"./$(SRCROOT)/myScript.sh"

Switching it to...

"$SRCROOT/myScript.sh"

Corrected the problem and indeed I can access $SRCROOT from my script now.