# Xcode build fixer

> Xcode build fixer is an open-source agent skill for developer tools. Applies approved Xcode build fixes one at a time and re-benchmarks the results. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/carloshpdoc/ios-workflow-claude/tree/main/plugins/xcode-build-suite/skills/xcode-build-fixer
- **Repository:** https://github.com/carloshpdoc/ios-workflow-claude
- **GitHub stars:** 7
- **License:** Apache-2.0
- **Skill name:** xcode-build-fixer
- **Collection:** https://github.com/carloshpdoc/ios-workflow-claude
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill takes an optimization plan that a developer has already reviewed and approved, then carries out the listed changes. It covers build settings in project.pbxproj, script phase guards and declared inputs and outputs, source-level fixes such as explicit types and access control, and Swift Package Manager dependency adjustments. Each change is applied separately, checked with an xcodebuild build, and reverted if compilation fails.

After all approved changes compile, the agent re-runs the benchmark with the original baseline parameters and produces an execution report table comparing before and after timings. Changes are marked kept, reverted, blocked or no improvement. Standard best-practice settings such as compilation caching and eager linking are retained even when a single run shows no gain, while speculative changes are dropped only if they regress across build types.

The skill expects a plan file at .build-benchmark/optimization-plan.md and an Xcode project that can be built from the command line. It is a Claude Code plugin skill, with reference documents on build settings, fix patterns and recommendation format.

## When your agent uses it

> Implement approved Xcode build optimization changes following best practices, then re-benchmark to verify improvement. Use when the developer has reviewed an optimization plan and approved specific changes, or when there is a clear list of build-setting or source-level fixes to apply and verify.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/carloshpdoc/ios-workflow-claude/tree/HEAD/plugins/xcode-build-suite/skills/xcode-build-fixer)
- [License: Apache-2.0](https://github.com/carloshpdoc/ios-workflow-claude/tree/HEAD/plugins/xcode-build-suite/skills/xcode-build-fixer)

## Features

- **Build setting changes:** Applies approved project.pbxproj values such as debug information format, compilation caching and eager linking.
- **Script phase fixes:** Adds configuration guards and declared input and output files to build script phases.
- **Source-level optimizations:** Covers explicit type annotations, final classes, narrower access control and split SwiftUI bodies.
- **Swift package restructuring:** Pins branch-tracked dependencies and separates interfaces from implementation modules.
- **Compile check per change:** Runs xcodebuild after each change and reverts any edit that breaks compilation.
- **Before and after report:** Re-benchmarks with the original parameters and outputs a table of timing deltas per change.

## Good for

- Apply the build setting changes I approved in my optimization plan
- Guard my release-only build script so it skips in Debug
- Pin my branch-tracked Swift packages to version tags and verify the build
- Re-benchmark my Xcode project after the approved fixes and report the timings
- Split a large SwiftUI body into subviews and confirm the project still compiles

## Install

### Claude Code

This skill ships in the `xcode-build-suite` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add carloshpdoc/ios-workflow-claude
/plugin install xcode-build-suite@carloshpdoc-plugins
```

Or copy only this skill to `~/.claude/skills/xcode-build-fixer`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/carloshpdoc/ios-workflow-claude.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/xcode-build-fixer &&
cp -R "$tmp/plugins/xcode-build-suite/skills/xcode-build-fixer" ~/.claude/skills/xcode-build-fixer &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/xcode-build-fixer` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/xcode-build-fixer` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/carloshpdoc/ios-workflow-claude.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/xcode-build-fixer &&
cp -R "$tmp/plugins/xcode-build-suite/skills/xcode-build-fixer" ~/.agents/skills/xcode-build-fixer &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/xcode-build-fixer` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/xcode-build-fixer` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/carloshpdoc/ios-workflow-claude.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/xcode-build-fixer &&
cp -R "$tmp/plugins/xcode-build-suite/skills/xcode-build-fixer" ~/.cursor/skills/xcode-build-fixer &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/xcode-build-fixer` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/carloshpdoc/ios-workflow-claude.git --path plugins/xcode-build-suite/skills/xcode-build-fixer
```

Or copy the folder to `~/.gemini/skills/xcode-build-fixer` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/xcode-build-fixer`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/carloshpdoc/ios-workflow-claude.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/xcode-build-fixer &&
cp -R "$tmp/plugins/xcode-build-suite/skills/xcode-build-fixer" ~/.copilot/skills/xcode-build-fixer &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/xcode-build-fixer` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/carloshpdoc/ios-workflow-claude.git
```

Then copy `ios-workflow-claude/plugins/xcode-build-suite/skills/xcode-build-fixer` into your agent's skills folder as `xcode-build-fixer`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Xcode build fixer trigger?

It is meant for cases where the developer has reviewed an optimization plan and approved specific changes, or has a clear list of build-setting or source-level fixes to apply and verify.

### What does Xcode build fixer need before it runs?

It reads approved items from .build-benchmark/optimization-plan.md, so that plan file needs to exist. It also runs xcodebuild, so the project must build from the command line.

### Will Xcode build fixer change code without approval?

No. The rules say it only applies changes with explicit developer approval, one logical fix at a time.

### Does Xcode build fixer revert settings that do not improve timing?

Best-practice settings like COMPILATION_CACHING and EAGER_LINKING are kept even without a benchmark gain. Speculative changes are reverted only if they regress across all build types.

### How do I install Xcode build fixer in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/xcode-build-fixer to use it in all your projects, or to .claude/skills/xcode-build-fixer in one project. Or install the xcode-build-suite plugin, which includes it: /plugin marketplace add carloshpdoc/ios-workflow-claude, then /plugin install xcode-build-suite@carloshpdoc-plugins.

### Does Xcode build fixer run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Xcode build fixer?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Xcode build fixer?

The closest alternatives to Xcode build fixer are Xcode build orchestrator, Xcode build benchmark, Axiom optimize build, Xcode project analyzer and Xcode compilation analyzer.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Xcode build orchestrator](https://ai-powered.com/skills/xcode-build-orchestrator): Xcode build orchestrator is an open-source agent skill for developer tools.
- [Xcode build benchmark](https://ai-powered.com/skills/xcode-build-benchmark): Xcode build benchmark is an open-source agent skill for developer tools.
- [Axiom optimize build](https://ai-powered.com/skills/axiom-optimize-build): Axiom optimize build is an open-source agent skill for developer tools.
- [Xcode project analyzer](https://ai-powered.com/skills/xcode-project-analyzer): Xcode project analyzer is an open-source agent skill for developer tools.
- [Xcode compilation analyzer](https://ai-powered.com/skills/xcode-compilation-analyzer): Xcode compilation analyzer is an open-source agent skill for developer tools.
- [Spm build analysis](https://ai-powered.com/skills/spm-build-analysis): Spm build analysis is an open-source agent skill for developer tools.
- [Skill improvement plan](https://ai-powered.com/skills/skill-improvement-plan): Skill improvement plan is an open-source agent skill for developer tools.
- [Axiom fix build](https://ai-powered.com/skills/axiom-fix-build): Axiom fix build is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/xcode-build-fixer
