title: Is it normal for Xcode not to detect if a pre-action failed?
body: <p>I am using Xcode 4 and I added an preaction to the <strong>run</strong> scheme, a bash script, but it seems that Xcode is ignoring the exit status of the script and always run, even if the exit code is not zero.</p>
  
  <p>Is this normal? What alternatives do I have for adding a custom step, one that can fail?</p>
  
  <p><strong>Update:</strong> I also tried <code>exit 1</code> for post-action for build but with the same results, always executing without any feedback. </p>
  
  <p>How can I make a custom step that can mark the build as failed?</p>