Skip to content

Fix compilation cache setting name and Swift compilation mode value#17

Merged
AvdLee merged 1 commit intomainfrom
fix/compilation-cache-setting-names
Apr 1, 2026
Merged

Fix compilation cache setting name and Swift compilation mode value#17
AvdLee merged 1 commit intomainfrom
fix/compilation-cache-setting-names

Conversation

@AvdLee
Copy link
Copy Markdown
Owner

@AvdLee AvdLee commented Apr 1, 2026

Summary

Closes #14

  • COMPILATION_CACHINGCOMPILATION_CACHE_ENABLE_CACHING: The build setting key used throughout all skills, scripts, references, and documentation was incorrect. Xcode's actual build setting key is COMPILATION_CACHE_ENABLE_CACHING. This fix updates all 23 affected files including the benchmark detection logic in benchmark_builds.py (the startswith() check) and the expectation tuples in generate_optimization_report.py.

  • SWIFT_COMPILATION_MODE debug value incrementalsinglefile: The expected value in the report generator and orchestration template used incremental, but xcodebuild -showBuildSettings outputs singlefile. Xcode's UI displays "Incremental", but the underlying build setting value is singlefile. Updated the _DEBUG_EXPECTATIONS tuple and the _check() guard that handles unset values.

Test plan

  • Verify generate_optimization_report.py correctly matches COMPILATION_CACHE_ENABLE_CACHING = YES in build settings output
  • Verify benchmark_builds.py detects compilation caching via the corrected startswith("COMPILATION_CACHE_ENABLE_CACHING") check
  • Verify SWIFT_COMPILATION_MODE audit passes when build settings report singlefile for Debug
  • Verify unset SWIFT_COMPILATION_MODE still treated as passing for Debug (Xcode defaults to singlefile)

Closes #14

- Rename `COMPILATION_CACHING` to `COMPILATION_CACHE_ENABLE_CACHING` across
  all skills, scripts, references, and documentation to match the actual
  Xcode build setting key.
- Change `SWIFT_COMPILATION_MODE` debug expected value from `incremental` to
  `singlefile` — the actual build setting value that xcodebuild outputs.
  Xcode UI labels this "Incremental", but the underlying value is `singlefile`.
- Update the `_check()` guard in generate_optimization_report.py so unset
  SWIFT_COMPILATION_MODE still passes when the expected value is `singlefile`.
@AvdLee AvdLee merged commit 092800d into main Apr 1, 2026
1 check passed
@AvdLee AvdLee deleted the fix/compilation-cache-setting-names branch April 1, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compilation cache setting name

1 participant