[build-tools] Add local Xcode compilation cache - #4204
Draft
sjchmiela wants to merge 3 commits into
Draft
Conversation
sjchmiela
force-pushed
the
stanley/xcode-local-compilation-cache
branch
from
August 14, 2026 15:26
3d98633 to
abe2ae6
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #4204 +/- ##
==========================================
+ Coverage 63.53% 63.56% +0.03%
==========================================
Files 1028 1029 +1
Lines 46905 47019 +114
Branches 9842 9862 +20
==========================================
+ Hits 29798 29883 +85
- Misses 17005 17034 +29
Partials 102 102 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
sjchmiela
force-pushed
the
stanley/xcode-local-compilation-cache
branch
2 times, most recently
from
August 14, 2026 16:06
9e252c9 to
25c441b
Compare
sjchmiela
force-pushed
the
stanley/xcode-local-compilation-cache
branch
from
August 14, 2026 16:15
25c441b to
aa6e610
Compare
|
❌ It looks like a changelog entry is missing for this PR. Add it manually to CHANGELOG.md. |
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.
Why
Xcode 26 has a compilation cache, but C and Objective-C cache tasks require a remote service path. EAS needs a local-only cache that can be archived after a build and restored on another CI machine. This must not require Bazel, Tuist, or a remote CAS service.
The deprecated worker
CacheManageris not used for this feature. The implementation uses the active build-cache path that already restores and saves ccache and the Gradle build cache.How
llcas_*operation to Apple's implementation.remote-service-pathoption. This makes Xcode schedule C, Objective-C, PCH, and PCM cache tasks without remote I/O.EAS_BUILD_XCODE_COMPILATION_CACHE=1.record-sim.llvm-casbefore enabling the cache. Disable compilation caching when the shim is missing or incompatible.GYM_DERIVED_DATA_PATHso Fastlane and cache restore/save use the sameios/builddirectory.ios/build/CompilationCache.noindex.restoreBuildCache.tsandsaveBuildCache.ts, next to ccache and Gradle cache handling.Test Plan
-Wall -Wextra -Werrorand confirm it links only tolibSystem.llvm-casand ingest a file into a temporary CAS.CompilationCache.noindexin another clean build.