Thanks for your response, Quinn.I understand that 'exit 1' and 'echo' works from a Build Phase Run Script, but my scripts are run from a scheme during Build pre-actions and post-actions. I have two schemes named Production and Test. My script accepts one parameter, PROD or TEST. This allows the script to differentiate between the Production or Test scheme. The script actually builds a .h file and must be run before the build starts. I don't think that I can use a Build Phase Run Script.I think that I define my Build pre-action script for my scheme like this:prebuildScript=${PROJECT_DIR}/BuildProcess/prebuild.sh errorFile=${buildProcessDir}prebuildErrors.txt $prebuildScript TEST 2>$errorFileThen, I could create a Build Phase Run Script that checks if the error file exists and has more than zero bytes. If the error file has content, the content could be echo'ed and exit 1 could be called. This seems cumbersome, but it may be a solution. Is there
Topic:
App & System Services
SubTopic:
Automation & Scripting
Tags: