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.
|