diff --git a/scripts/build.sh b/scripts/build.sh index 6808f9f486ab..61470f453b7b 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -109,8 +109,10 @@ source scripts/check_secrets.sh function RunXcodebuild() { echo xcodebuild "$@" + xcpretty_cmd=(xcpretty) + result=0 - xcodebuild "$@" | tee xcodebuild.log || result=$? + xcodebuild "$@" | tee xcodebuild.log | "${xcpretty_cmd[@]}" || result=$? if [[ $result == 65 ]]; then ExportLogs "$@" @@ -119,7 +121,7 @@ function RunXcodebuild() { sleep 5 result=0 - xcodebuild "$@" | tee xcodebuild.log || result=$? + xcodebuild "$@" | tee xcodebuild.log | "${xcpretty_cmd[@]}" || result=$? fi if [[ $result != 0 ]]; then