Reference
When something is off
What you do
On CI, read the job summary: it counts hits and misses and says when the cache was off.
On a Mac, ask the CLI why the hit rate is low.
warmbuild doctorTo turn it off, remove the step on CI, or run
warmbuild stopon a Mac.
What you get
When the cache is unreachable or the account is not approved, builds run without it, as before. Nothing fails.
On CI
- No hits at all: the default branch has to build once with the Action first. Until then pull requests find the cache empty, and the job summary says so.
- The pull request that adds the Action finds nothing: expected. Pull requests only read, so its own build fills nothing. Merge it; later pull requests hit.
- One target misses that used to hit: run
warmbuild why-miss <target>. It compares recent jobs and names what changed since the last job without misses: Xcode, runner, ref, event or commit. - The targets a pull request changes miss: on pull requests the Action times Swift type-checking
in those targets, and they compile without the cache in that job.
typecheck: falseturns the timing off. - The Action warns that the job has no OIDC token: add
id-token: writeto the job's or the workflow'spermissions. - A pull request from a fork runs without the cache: GitHub gives it no OIDC token. The Action prints a notice, the job summary says the cache was not used, and the job stays green.
On a Mac
Run warmbuild doctor first. It checks each cause below and prints the fix.
- Swift files never hit: Swift hits what CI compiled only on Xcode 27. On Xcode 26 only C and Objective-C modules do.
- Few hits: build with the same Xcode version, configuration and destination as CI. A branch far from the default branch shares less.
- The Xcode app gets no hits,
xcodebuilddoes: Xcode was open beforewarmbuild start. Quit and reopen it once. - DerivedData or a worktree under
/tmp: those builds miss. Use Xcode's default DerivedData and keep worktrees in your home directory. - Not signed in, or the token expired: run
warmbuild login. Without it the Mac uses only its own cache.
Unreachable, or turned off
- The cache is unreachable or the account is not approved: builds run without it, as before.
warmbuild statuson a Mac says which. - Turn it off on CI: remove the
warmbuild/actionstep. - Turn it off on a Mac:
warmbuild stop. - Remove it from a Mac: run
warmbuild stop, thenrm -rf ~/.warmbuild ~/.local/bin/warmbuild, and delete theXCODE_XCCONFIG_FILEline from~/.zshrcifstartadded it.