How To Abort the Run Build Scheme from a Pre-Action Script

  • I've defined a script as a Pre-action of a Run Build Scheme which performs a few assertions from the environment and also may start a web service. When it fails, it should abort the Run Scheme. How can I accomplish this?

    For example:

    #!/bin/bash

    if [[ -z ${SRCROOT} ]]; then
        echo "Error: no build settings defined" exit -1 ;  #abort the parent process?
    fi

    A related question is, how one could view the output from the script in Xcode's issues list.

    Thanks in advance for a solution!

    Andreas
previous month may 2013 next month
MTWTFSS
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Go to today