Loading...
Loading...
Analyze Swift and mixed-language compile hotspots using build timing summaries and Swift frontend diagnostics, then produce a recommend-first source-level optimization plan. Use when a developer reports slow compilation, type-checking warnings, expensive clean-build compile phases, long CompileSwiftSources tasks, warn-long-function-bodies output, or wants to speed up Swift type checking.
npx skill4agent add avdlee/xcode-build-optimization-agent-skill xcode-compilation-analyzer.build-benchmark/Build Timing SummaryCompileSwiftSourcesSwiftEmitModulePlanning Swift module-Xfrontend -warn-long-expression-type-checking=<ms>-Xfrontend -warn-long-function-bodies=<ms>-Xfrontend -debug-time-compilation-Xfrontend -debug-time-function-bodies-Xswiftc -driver-time-compilation-Xfrontend -stats-output-dir <path>python3 scripts/diagnose_compilation.py \
--project App.xcodeproj \
--scheme MyApp \
--configuration Debug \
--destination "platform=iOS Simulator,name=iPhone 16" \
--threshold 100 \
--output-dir .build-benchmarkAnyObjectfinalpublicopenbodyxcode-project-analyzer