I have a scheme in Xcode 4. I edited the scheme so that Build has a Pre-Action, and this action is a script.
The script is simple - it unloads the preprocessor, defines: cpp -dM < /dev/null .
cpp -dM < /dev/null
Where can I find the output of the script?
There was a problem - I added the script to the project, and not to the goal. For the purpose, the exit was available in the Problem Navigator when the corresponding checkbox was checked.
add this line to the script pre-action
pwd > ~/current_directory.txt
then check the current_directory.txt file in your home directory