• 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
Flagging errors from inside a Run Script build phase
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Flagging errors from inside a Run Script build phase


  • Subject: Flagging errors from inside a Run Script build phase
  • From: Dave McCaldon <email@hidden>
  • Date: Thu, 26 Jan 2006 21:35:43 -0500


If I have a Run Script Build Phase, and my script determines there's an error, how do I "raise" that to Xcode?  There already seems to be some smarts in Xcode, for example if you add the following to your script:

rm /tmp/foobar

Assuming the file doesn't exist, this will be flagged as a build error:             

rm: /tmp/foobar: No such file or directory

This is great, I can click on error in the build results and it takes me to the raw output from the script.  However, I just don't seem to be able to get it to work with my own errors.

I tried the obvious stuff like redirecting my errors to stderr, or putting keywords such as "ERROR:" in the output, but alas Xcode doesn't seem to notice it.

Any thoughts?

Thanks.

 _______________________________________________
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

  • Follow-Ups:
    • Re: Flagging errors from inside a Run Script build phase
      • From: Jonas Maebe <email@hidden>
  • Prev by Date: Xcode - linking libraries based on Configuration
  • Next by Date: Re: Aliases or Symbolic Links (Xcode newbie)
  • Previous by thread: Re: Xcode - linking libraries based on Configuration
  • Next by thread: Re: Flagging errors from inside a Run Script build phase
  • Index(es):
    • Date
    • Thread