Trying to run a simple script connected to my xcode project as follows:
if [ -d '$HOME/data' ]; then cd "$HOME/data/" rsync -t *.plist '$SRCROOT/data/' fi exit 0
The script seems to work fine if I run it outside of Xcode, but when I run from Xcode I get the following error ...
line 2: SRCROOT: command not found
The SRCROOT variable does not seem to be detected in the script, but I understand that this is one of the environment variables that must be passed and accessible to the script. Any thought?
source share