The previous `-quiet 2>&1 | tail -5` collapsed every diagnostic into
`** BUILD FAILED **`, leaving App target failures (e.g., the
unhandled-resource error fixed in #169) effectively undebuggable from
CI logs alone — we had to repro locally. Capture xcodebuild output to a
tempfile instead; on success print only the tail (preserving current
quietness), on failure print every `error:` / `fatal error:` line plus
the last 80 lines of output for context.
Local behaviour on a passing build is unchanged.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>