# xcode-build-benchmark

> Claude/Codex skill by [@avdlee](https://omgskills.com/library/avdlee/index.md) · 1.2k stars · Updated 2026-08-12

Benchmark Xcode clean and incremental builds with repeatable inputs, timing summaries, and timestamped \`.build-benchmark/\` artifacts. Use when a developer wants a baseline, wants to compare before and after changes, asks to measure build performance, mentions build times, build duration, how long builds take, or wants to know if builds got faster or slower.

Tags: agent, agent-skills, ios, ios-development, skills, xcode

## Install

```sh
git clone https://github.com/AvdLee/Xcode-Build-Optimization-Agent-Skill /tmp/Xcode-Build-Optimization-Agent-Skill && ln -s /tmp/Xcode-Build-Optimization-Agent-Skill/skills/xcode-build-benchmark ~/.claude/skills/xcode-build-benchmark
```

## From README

Xcode Build Benchmark Use this skill to produce a repeatable Xcode build baseline before anyone tries to optimize build times. Core Rules Measure before recommending changes. Capture clean and incremental builds separately. Keep the command, destination, configuration, scheme, and warm-up rules consistent across runs. Write a timestamped JSON artifact to .build-benchmark/. Do not change project files as part of benchmarking. Inputs To Collect Confirm or infer: workspace or project path scheme configuration destination whether the user wants simulator or device numbers whether a custom DerivedData path is needed If the project has both clean-build and incremental-build pain, benchmark both. That is the default. Worktree Considerations When benchmarking inside a git worktree, SPM packages with exclude: paths that reference gitignored directories (e.g., Snapshots) will cause xcodebuild -resolvePackageDependencies to crash. Create those missing directories before running any builds.

## Links

- HTML page: https://omgskills.com/skills/avdlee/xcode-build-optimization-agent-skill/xcode-build-benchmark/
- GitHub: https://github.com/AvdLee/Xcode-Build-Optimization-Agent-Skill
- Author: [@avdlee](https://omgskills.com/library/avdlee/index.md)

## More from this repo

- [spm-build-analysis](https://omgskills.com/skills/avdlee/xcode-build-optimization-agent-skill/spm-build-analysis/index.md) — Used to analyze Swift Package Manager dependencies, package plugins, module variants, and CI-oriented build overhead...
   - [@avdlee](https://omgskills.com/library/avdlee/index.md) · 1.2k stars
- [xcode-build-fixer](https://omgskills.com/skills/avdlee/xcode-build-optimization-agent-skill/xcode-build-fixer/index.md) — Apply approved Xcode build optimization changes following best practices, then re-benchmark to verify improvement.
   - [@avdlee](https://omgskills.com/library/avdlee/index.md) · 1.2k stars
- [xcode-build-orchestrator](https://omgskills.com/skills/avdlee/xcode-build-optimization-agent-skill/xcode-build-orchestrator/index.md) — Orchestrate Xcode build optimization by benchmarking first, running the specialist analysis skills, prioritizing...
   - [@avdlee](https://omgskills.com/library/avdlee/index.md) · 1.2k stars
