Get started
Mac: the CLI
What you do
In the repository, run the installer. It needs macOS; the CLI is one binary, no Node.js.
curl -fsSL https://warmbuild.dev/install.sh | shOpen the GitHub link it prints and enter the code. It then starts the cache, also after every reboot.
Build in Xcode as before, then check the hits.
warmbuild doctorexplains a miss.warmbuild status
What you get
Local builds and every worktree of the repository read what CI compiled on the default branch. Laptops only read.
Details
- Needs macOS, nothing else: the CLI is one binary for Apple silicon or Intel. The installer checks it against its published SHA-256, installs it to
~/.warmbuild/binwithout sudo and linkswarmbuildinto~/.local/bin. Then it signs you in and starts the cache for this repository. Run it again to update. - Sign-in opens GitHub in the browser and asks for a code. When you can use several accounts (your own and an organisation's), it then asks which one.
- The cache keeps running after a reboot. The Xcode app gets
XCODE_XCCONFIG_FILEfrom launchd; if Xcode was already open, reopen it once. Forxcodebuildin a shell,startasks to add oneexport XCODE_XCCONFIG_FILE=…line to~/.zshrc. warmbuild startalso says whether CI has filled the cache for this repository and this Mac's Xcode version. If not, a push to the default branch with the Action fills it.- Each
warmbuild run -- xcodebuild …ends with a line such as1,840 of 1,871 compile tasks from the cache, about −4 min (estimate).warmbuild statusshows the same for the last build. - Swift files hit what CI compiled only on Xcode 27. Xcode 26 puts the checkout and DerivedData paths into Swift's keys, so on a Mac only its C and Objective-C modules hit.
startcan also add#include? "warmbuild.local.xcconfig"to the project's xcconfig. That covers the project's own targets, not its Swift packages, and Macs without Warmbuild build as before. warmbuild doctorexplains a low hit rate and prints the fix. The CLI updates itself daily;warmbuild updatedoes it now.- The Mac's own store in
~/.warmbuild/storeis capped at 10 GiB and drops the least recently used files first. On APFS, worktrees share the disk blocks of large outputs. warmbuild stopturns it off. Every command and its flags: CLI commands.
cd your-appcurl -fsSL https://warmbuild.dev/install.sh | sh