title: How to view app logging when ui testing
body: <p>When running UI tests on my iOS app on our Jenkins CI slave, the UI is incorrect and my tests fail. Locally, the same UI is as expected and the tests pass.</p>
  
  <p>I haven't been able to figure this out and I cannot debug it as it is on a remote machine. So, I would like to add logging to see what decisions are being made by the app to figure out why the UI is displaying incorrectly in the remote Jenkins slave.</p>
  
  <p>The test log output does not contain log output from the app (via <code>NSLog</code>), nor can I find any of the strings from the app<code>NSLog</code> calls in any .xcactivitylog file in the derived data output folders.</p>
  
  <p>Where can I find my logging output from my app when it is being run by the UI tests? This is with Xcode 8.2 running a iOS 9.3 simulated device.</p>