fastlane-old / scan

The easiest way to run tests of your iOS and Mac app
https://fastlane.tools
221 stars 25 forks source link

Run xcodebuild with NSUnbufferedIO=YES environment variable #44

Closed 0xced closed 8 years ago

0xced commented 8 years ago

When xcodebuild is piped (even through a simple cat) the test results output becomes buffered. This is very annoying when piped through xcpretty because the test results only appear once all the tests have run.

Setting the NSUnbufferedIO environment variable to YES when running xcodebuild solves this issue, see http://stackoverflow.com/questions/18995187/xcodebuild-corrupts-test-result-output-when-output-redirected-to-file/19190226#comment54275017_19190226

KrauseFx commented 8 years ago

Thanks @0xced :+1:

mjdetullio commented 8 years ago

This has been annoying me for some time. Never realized it was that simple. Good find :+1: