CI run 25803540736 (and earlier runs) reported ** BUILD FAILED ** for the App target with no further diagnostics — -quiet 2>&1 | tail -5 swallowed every error line. We had to reproduce locally to discover the real failure (Found unhandled resource at packages/Harness/Corpora, fixed in #169).
This PR keeps the success path quiet (tail -5 of stdout) and adds proper diagnostics on the failure path:
Capture full xcodebuild output to a tempfile.
On success: behaves as before, prints the last 5 lines.
On failure: greps for error: / fatal error: lines, then prints the last 80 lines of output for context.
Test plan
bash scripts/check-app-builds.sh on a passing build — output unchanged from before.
On the next App-target failure, CI logs surface the real error: lines instead of just ** BUILD FAILED **.
## Summary
CI run [25803540736](https://github.com/KofTwentyTwo/Jarvis/actions/runs/25803540736) (and earlier runs) reported `** BUILD FAILED **` for the App target with no further diagnostics — `-quiet 2>&1 | tail -5` swallowed every error line. We had to reproduce locally to discover the real failure (`Found unhandled resource at packages/Harness/Corpora`, fixed in #169).
This PR keeps the success path quiet (`tail -5` of stdout) and adds proper diagnostics on the failure path:
- Capture full xcodebuild output to a tempfile.
- On success: behaves as before, prints the last 5 lines.
- On failure: greps for `error:` / `fatal error:` lines, then prints the last 80 lines of output for context.
## Test plan
- [x] `bash scripts/check-app-builds.sh` on a passing build — output unchanged from before.
- [ ] On the next App-target failure, CI logs surface the real `error:` lines instead of just `** BUILD FAILED **`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
CI run 25803540736 (and earlier runs) reported
** BUILD FAILED **for the App target with no further diagnostics —-quiet 2>&1 | tail -5swallowed every error line. We had to reproduce locally to discover the real failure (Found unhandled resource at packages/Harness/Corpora, fixed in #169).This PR keeps the success path quiet (
tail -5of stdout) and adds proper diagnostics on the failure path:error:/fatal error:lines, then prints the last 80 lines of output for context.Test plan
bash scripts/check-app-builds.shon a passing build — output unchanged from before.error:lines instead of just** BUILD FAILED **.🤖 Generated with Claude Code