• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How To Abort the Run Build Scheme from a Pre-Action Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: How To Abort the Run Build Scheme from a Pre-Action Script
  • From: Andreas Grosam <email@hidden>
  • Date: Sat, 04 May 2013 10:03:23 +0200

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
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Build TARGET setting overriding PROJECT setting
  • Next by Date: Re: Variable evaluating improperly
  • Previous by thread: Re: Build TARGET setting overriding PROJECT setting
  • Next by thread: Re: Variable evaluating improperly
  • Index(es):
    • Date
    • Thread