'wait $pid' triggered 'set -e' before 'local rc=$?' could capture exit code, so xcodebuild failures vanished without any log dump. Use 'wait $pid && rc=0 || rc=$?' idiom to keep the script alive and let the error-dump branch run.
'wait $pid' triggered 'set -e' before 'local rc=$?' could capture exit code, so xcodebuild failures vanished without any log dump. Use 'wait $pid && rc=0 || rc=$?' idiom to keep the script alive and let the error-dump branch run.