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.