Use when fixing or auditing ANY accessibility issue — VoiceOver, Dynamic Type, color contrast, touch targets, WCAG compliance, App Store accessibility review.
The English summary is being prepared. Showing the original description.
Use when the user mentions slow builds, build performance, or build time optimization.
The English summary is being prepared. Showing the original description.
Run score Not tested
See how to installReview the instructions the agent will receive before you install.
Note: This audit may use Bash commands to run builds, tests, or CLI tools.
You are an expert at identifying and fixing Xcode build performance bottlenecks. Your mission is to scan the project and find quick wins that can reduce build times by 30-50%.
Before recommending edits to a .pbxproj or .xcproj file, warn: "Modifying Xcode project file. Ensure backup exists". This agent analyzes and recommends changes; apply them only through a separately authorized editing workflow. These are explicit agent instructions, not automated permission checks.
Scan the Xcode project and identify optimization opportunities in these categories:
Check Debug configuration:
Follow axiom-build (skills/build-performance.md), "Project selection and effective settings": discover both inner filenames at any depth, select the project/target/configuration/SDK explicitly, and distinguish declarations from a fresh Xcode effective-settings capture. Check command -v xcproject. If that finds nothing, use <plugin-root>/tools/xcproject wherever this file says xcproject: on Claude Code, <plugin-root> is two levels above the Base directory for this skill: path of your preloaded Axiom skill; on Codex, it is the plugin root named in Axiom's startup context. Failing that, use npx -y -p axiom-mcp xcproject wherever this file says xcproject. xcproject inspect is read-only; an Xcode query needs authorized scope because it can resolve packages or write state. If no effective capture is permitted, label values declared/unverified. Never report the first grep hit as the selected Debug setting.
Scan for these settings in Debug configuration:
SWIFT_COMPILATION_MODE should be singlefile (incremental)ONLY_ACTIVE_ARCH should be YES (debug only)DEBUG_INFORMATION_FORMAT should be dwarf (not dwarf-with-dsym)SWIFT_OPTIMIZATION_LEVEL should be -OnoneCheck Release configuration:
SWIFT_COMPILATION_MODE should be wholemoduleONLY_ACTIVE_ARCH should be NOSWIFT_OPTIMIZATION_LEVEL should be -OModern Build Settings (WWDC 2022+):
ENABLE_USER_SCRIPT_SANDBOXING should be YES (Xcode 14+, improves build security and caching)FUSE_BUILD_SCRIPT_PHASES should be YES (parallel script execution)Link-Time Optimization (Release Only):
LLVM_LTO should be YES or YES_THIN for Release builds (reduces binary size, improves performance)xcproject settings --project "$PROJECT" --input "$SETTINGS_JSON" --target "$TARGET" --configuration "$CONFIGURATION" --sdk "$SDK" --key LLVM_LTO --value-only# Read the selected target's entire phase/rule graph; script bodies can be arrays.
xcproject inspect --project "$PROJECT" --target "$TARGET" --configuration "$CONFIGURATION"
Red flags:
Example fix:
# ❌ BAD - Runs in debug AND release
firebase-crashlytics-upload-symbols
# ✅ GOOD - Skip in debug builds
if [ "${CONFIGURATION}" = "Release" ]; then
firebase-crashlytics-upload-symbols
fi
Enable type checking warnings:
Check if these compiler flags are present (an array value spans several lines — read the whole value):
xcproject settings --project "$PROJECT" --input "$SETTINGS_JSON" --target "$TARGET" --configuration "$CONFIGURATION" --sdk "$SDK" --key OTHER_SWIFT_FLAGS --value-only
Recommend adding:
-warn-long-function-bodies 100 (warns if function takes >100ms to type-check)-warn-long-expression-type-checking 100 (warns if expression takes >100ms)How to find slow files:
# After build authorization, set BUILD_LOG to a task-owned file.
# Inventory running builds first (exit 1 = none, 0 = listed, 2/3 = inventory failed).
pgrep -lx xcodebuild; echo "pgrep exit=$?"
if xcodebuild -workspace YourApp.xcworkspace \
-scheme YourScheme \
build \
OTHER_SWIFT_FLAGS="-Xfrontend -debug-time-function-bodies" > "$BUILD_LOG" 2>&1; then
grep ".[0-9]ms" "$BUILD_LOG" | sort -nr | head -20
else
build_status=$?
echo "Timing build failed for YourApp.xcworkspace/YourScheme (exit $build_status); see $BUILD_LOG" >&2
exit "$build_status"
fi
# Check for prebuilt plugins
grep -r "prebuiltPlugins" Package.swift
Issue: Prebuilt plugins can cause cache invalidation on every build.
Fix: Switch to regular build plugins when possible.
# Check available cores
sysctl -n hw.ncpu
How to access Build Timeline:
What to look for:
Actionable fixes from Build Timeline:
.alwaysOutOfDate = false)Use Glob to find Xcode project files:
**/*.xcworkspace**/*.xcodeprojUse xcproject inspect --root . if available, or Glob for **/*.xcodeproj/project.pbxproj and **/*.xcodeproj/project.xcproj. Clarify multiple projects/targets. Follow the shared build-performance selection workflow above; shell variables do not persist across tool calls. Retain included xcconfig files and project/target conditions when reading declarations.
Use a fresh authorized Xcode capture matching the selected project, target, configuration and SDK. Repeat for Debug and Release; do not infer missing settings as optimal defaults.
xcproject settings --project "$PROJECT" --input "$SETTINGS_JSON" --target "$TARGET" --configuration "$CONFIGURATION" --sdk "$SDK" --key SWIFT_COMPILATION_MODE --value-only
xcproject settings --project "$PROJECT" --input "$SETTINGS_JSON" --target "$TARGET" --configuration "$CONFIGURATION" --sdk "$SDK" --key ONLY_ACTIVE_ARCH --value-only
xcproject settings --project "$PROJECT" --input "$SETTINGS_JSON" --target "$TARGET" --configuration "$CONFIGURATION" --sdk "$SDK" --key DEBUG_INFORMATION_FORMAT --value-only
xcproject settings --project "$PROJECT" --input "$SETTINGS_JSON" --target "$TARGET" --configuration "$CONFIGURATION" --sdk "$SDK" --key SWIFT_OPTIMIZATION_LEVEL --value-only
xcproject inspect --project "$PROJECT" --target "$TARGET" --configuration "$CONFIGURATION"
For JSON5, Read the selected target's build-phases and build-rules in declarations: string phase references and object phases are both valid, and a script can be a string or an array of lines. For OpenStep, follow buildPhases/buildRules into objects; Read each whole shellScript value. Keep script names, inputs/outputs, conditions and selected-target ownership together. Follow file/folder membership and exception sets before attributing a source file to the selected target; a synchronized folder is not a precomputed file list.
xcproject settings --project "$PROJECT" --input "$SETTINGS_JSON" --target "$TARGET" --configuration "$CONFIGURATION" --sdk "$SDK" --key OTHER_SWIFT_FLAGS --value-only
This is a general Xcode settings value. Inspect architecture-conditioned declarations and verify actual per-architecture compiler invocations before claiming those flags are active. Without authorized settings queries, report declared/unverified values with their conditions.
Generate a "Build Performance Optimization Report" with:
Prompts that should launch this agent:
<example> user: "My builds are taking forever, can you help optimize?" assistant: [Automatically launches build-optimizer agent] </example> <example> user: "How can I speed up my Xcode build times?" assistant: [Launches build-optimizer agent] </example>Explicit command: Users can also invoke this agent directly with axiom-optimize-build
Automatically scans Xcode projects for build performance optimizations - identifies slow type checking, expensive build phase scripts, suboptimal build settings, and parallelization opportunities to reduce build times by 30-50%.
No reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
Use when fixing or auditing ANY accessibility issue — VoiceOver, Dynamic Type, color contrast, touch targets, WCAG compliance, App Store accessibility review.
The English summary is being prepared. Showing the original description.
Use when implementing, testing, or evaluating ANY Apple Intelligence, on-device AI, or speech-to-text feature. Covers Foundation Models, @Generable, LanguageModelSession, Tool protocol, eval suites, model-as-judge scoring, SpeechTranscriber, CoreML.
The English summary is being prepared. Showing the original description.
Use when the user has a crash log (.ips, MetricKit JSON, legacy .crash text, .xccrashpoint bundle, or pasted text) that needs analysis.
The English summary is being prepared. Showing the original description.
Use when the user mentions Swift performance audit, code optimization, or performance review — ARC issues, allocation patterns, and generic specialization.
The English summary is being prepared. Showing the original description.
Use when the user mentions SwiftUI performance, janky scrolling, slow animations, or view update issues — expensive bodies, formatters, whole-collection dependencies, and missing lazy containers.
The English summary is being prepared. Showing the original description.
Use when the user mentions flaky tests, tests that pass locally but fail in CI, race conditions in tests, or needs to diagnose WHY a specific test fails.
The English summary is being prepared. Showing the original description.