Skip to content

Instantly share code, notes, and snippets.

@depth42
Created November 7, 2013 14:23
Show Gist options
  • Save depth42/7355346 to your computer and use it in GitHub Desktop.
Save depth42/7355346 to your computer and use it in GitHub Desktop.
Xcode Server has the problem that one can only access the build log files once the build or test process has finished. But as it can occur that tests hang, it is hard to analyze why and where the hang actually happened. This little shell script helps debugging by showing the log output of the currently running bot.
#!/bin/bash
# Shell script to be executed on a Mavericks Server runing Xcode Server using sudo
BOTRUN_DATA=/Library/Server/Xcode/Data/BotRuns
LATEST_RUN=`ls -tr $BOTRUN_DATA | grep BotRun- | tail -n1`
tail -f ${BOTRUN_DATA}/${LATEST_RUN}/output/build.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment