Because we're piping xcodebuild through xcpretty we need to guarantee that we exit with same status code as xcodebuild otherwise we can have some false positives caused by xcpretty which always succeeds since he hasn't in consideration the exit code of xcodebuild.
Because we're piping
xcodebuild
throughxcpretty
we need to guarantee that we exit with same status code asxcodebuild
otherwise we can have some false positives caused byxcpretty
which always succeeds since he hasn't in consideration the exit code ofxcodebuild.
Reference: https://github.com/supermarin/xcpretty#usage.
P.S. My apologies, I'm aware that I originated this issue 😞