I have a scheme in Xcode 4. I edited the scheme so that Build has a Pre-Action, and that action is a script.
The script is simple - it dumps pre-processor defines: cpp -dM < /dev/null
.
Where do I find the output of the script?
add this line to pre-action script
pwd > ~/current_directory.txt
then check file current_directory.txt in your home directory