Xcode build tuner

From Xopoko/build-swift-apps · View interactive version

Xcode build tuner is an AI agent skill from the GitHub repository Xopoko/build-swift-apps. Apply and re-benchmark approved Xcode build-speed fixes in build settings, script phases, Swift code, or SwiftPM graphs.

How to use this skill

Skill file

Xcode Build Tuner

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.

Bundled commands use $PLUGIN_ROOT for the plugin root. Use the host's plugin-root variable when defined; otherwise set it to the absolute path of this plugin before running a helper from the app repository.

Implement only approved build optimization changes, verify compilation, and prove the result with the same benchmark contract.

Rules

Fix Types

Workflow

  1. Read the approved plan or user instruction.
  2. Identify exact files/settings for each approved item.
  3. Apply the change.
  4. Run a quick build to catch compiler/linker errors.
  5. Re-run the original baseline command, usually:

```bash

python3 "$PLUGIN_ROOT/shared/build-optimization/scripts/benchmark_builds.py" \

--project App.xcodeproj --scheme MyApp --configuration Debug \

--destination "platform=iOS Simulator,name=<latest available iPhone simulator>,OS=latest" \

--output-dir .build-benchmark

```

  1. Compare clean, cached clean when present, and incremental medians.

Regression Policy

Report

Lead with plain wall-clock impact:

Clean build: X.Xs (was Y.Ys) - Z.Zs faster/slower.
Incremental build: X.Xs (was Y.Ys) - Z.Zs faster/slower.

Include changed files, any reverted changes, and uncertainty that affects the comparison. If cumulative task time fell while elapsed time stayed the same, report both observations.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.