Xcode Project Auditor
Before invoking Apple-only binaries, confirm the execution context is macOS. From Windows or Linux, run those steps in a Mac SSH project or through an already configured remote transport; do not retry missing Apple binaries locally.
Use for project- and target-level build inefficiencies. Recommend first and require explicit approval before changing projects, schemes, or build settings.
Review
- scheme build order and target dependencies
- Debug vs Release performance settings from
../../shared/build-optimization/references/build-settings-best-practices.md - run script inputs/outputs,
.xcfilelist, dependency analysis, and timestamp-changing tools - DerivedData churn, custom steps, fixed no-op rebuild overhead, codesign, validation, CopySwiftLibs
- parallelization opportunities, explicit module settings, module maps,
DEFINES_MODULE, and self-contained headers Planning Swift module, asset catalog compilation, andExtractAppIntentsMetadatatiming- CocoaPods presence: note maintenance mode, assess SPM migration feasibility,
and avoid speculative Podfile or generated Pods-project tuning
- Xcode 16.4+ Task Backtraces for tasks that rerun unexpectedly
When a finding depends on a setting, check the effective value for the affected target, configuration, and destination with xcodebuild -showBuildSettings. Read the project or xcconfig to locate its source before proposing an edit.
Typical Wins
Skip debug-time scripts that only matter in release, add script guards and dependency metadata, remove accidental serial bottlenecks, align settings that create extra module variants, stop formatters/linters from touching unchanged files, split huge asset catalogs into resource bundles, and use Task Backtraces to find the input that triggers invalidation.
Output
For each issue include evidence, scope, whether it affects clean/incremental/both, estimated impact, and approval requirement. If evidence points to package graph or build plugins, read and hand off to swiftpm-build-inspector.
Resources
references/project-audit-checks.md../../shared/build-optimization/references/build-settings-best-practices.md../../shared/build-optimization/references/recommendation-format.md../../shared/build-optimization/references/build-optimization-sources.md