Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the logfile located for Xcode Scheme Post-Actions?

I am running a script in my Xcode project in the Scheme's Build->Post-actions "Run Script". It runs fine but I would like to see the console output of that script. It doesn't seem to be included in the Log Navigator tab, where can I find this log?

like image 339
Locksleyu Avatar asked May 23 '12 15:05

Locksleyu


1 Answers

The output from those scripts doesn't seem to be logged anywhere by default. Your best bet is to manually redirect the output of the script to a known location. For example, add the following as the first line of your script:

exec > /tmp/my_log_file.txt 2>&1 

This will redirect all following output to stdout and stderr to your specified log file.

like image 96
digitalvision Avatar answered Oct 01 '22 23:10

digitalvision