Raise fastlane -showBuildSettings timeout in CI workflows#780
Merged
Conversation
The weekly TestFlight build failed when xcodebuild -showBuildSettings timed out after fastlane's default ~45s retry budget (base 3s, 4 retries). This happened because the Alamofire and swift-collections bumps changed Package.resolved, invalidating the SPM cache key, so the build ran with a cold package graph and -showBuildSettings blocked on package resolution past the timeout. Set FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT/RETRIES on both the TestFlight build and the test run so cold-cache package resolution (which happens on every dependency-bump PR) has room to complete instead of failing. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The weekly TestFlight build failed with:
```
xcodebuild -showBuildSettings timed out after 4 retries with a base timeout of 3.
```
This is not a code issue. Fastlane runs `xcodebuild -showBuildSettings` to read build settings, retrying with escalating timeouts (3 → 6 → 12 → 24s, ~45s total). All four attempts timed out.
Root cause: the recent Alamofire (#774) and swift-collections (#775) bumps changed `Package.resolved`, which invalidated the SPM cache key (`hashFiles('**/Package.resolved')`). The build then ran with a cold package graph — the log shows the `swift-syntax` macro prebuilt being downloaded mid-step — so `-showBuildSettings` blocked on package resolution longer than fastlane's default retry budget.
Fix
Set `FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT` / `FASTLANE_XCODEBUILD_SETTINGS_RETRIES` (global fastlane env vars, honored by both `gym`/`build_app` and `scan`/`run_tests`) so cold-cache package resolution has room to complete.
Applied to both workflows:
No behavioral change when the cache is warm — the timeout only matters when `-showBuildSettings` is slow.
🤖 Generated with Claude Code