title: Xcode Server ibtool Build Failures
body: <p>I have been investigating using Xcode Server for CI. I've worked through some of the problems, but now have a problem that has stumped me.</p>
  
  <p>The builds seem to work alright, but then hangs during the testing phase, and produces this at the bottom of the log:</p>
  
  <pre><code>2015-11-25 14:44:45.650 xcodebuild[58280:821560]  iPhoneSimulator: D7097422-C058-44DB-A275-CE1A44B11023: Executable terminated at path: /Applications/Xcode7.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Agents/xctest (status = 6)
  Sampling process 58280 for 10 seconds with 1 millisecond of run time between samples
  Sampling completed, processing symbols...
  Sample analysis of process 58280 written to file /Library/Developer/XcodeServer/Integrations/Integration-269b1638e732255aefa82f1688077c72/58280.sample
  sample[59879]: sample cannot find any existing process you have access to which has a name like 'Interface Builder Cocoa Touch Tool'; try running with `sudo`.
  sample[59880]: sample cannot find any existing process you have access to which has a name like 'ibtool'; try running with `sudo`.
  sample[59881]: sample cannot find any existing process you have access to which has a name like 'ibtoold'; try running with `sudo`.
  ** BUILD INTERRUPTED **
  </code></pre>
  
  <p>The server is running OS X 10.10.5 (cannot upgrade to El Capitan just yet), OS X Server 5.5.15, and numerous Xcode versions, but has selected Xcode 7.1 (which is the latest version available on this server).</p>
  
  <p>Has anyone seen this before and solved it?</p>
  
  <p><a href="https://stackoverflow.com/questions/32106759/xcode-bot-fails-with-no-activity-for-too-long-error">This question</a> which links to <a href="https://stackoverflow.com/questions/20205162/user-interaction-is-not-allowed-trying-to-sign-an-osx-app-using-codesign/22637896#22637896">this question</a> professes to having a solution, but alas, they are not helpful and seem to have slightly different setups. So yes, the keychain is unlocked and available to Xcode Server, and the server has been restarted.</p>