I am running a customized script which includes a command (ios-sim) which should be known to bash (the binary lies in /usr/local/bin, $PATH knows). However, when invoked by xcodebuild the console logs "command not found".
I am able to execute the command manually, but I have no idea why it doesn't work within the run script. I have checked the user but as I expected it is both times the same user...
The line invoking ios-sim:
ios-sim launch $(dirname $TEST_HOST) $environment_args --args -SenTest All $test_bundle_path -v