Build Swift Apps
Build, debug, and ship Swift apps with your coding agent.
Build Swift Apps is a pack of agent skills for iOS and macOS. It gives Codex,
Claude Code, Cursor, and pi workflows for projects that use SwiftUI, AppKit,
Xcode, Swift Package Manager, or Tuist.
What it does
- Build and run on Simulator, inspect the UI and logs, or run SwiftUI package
previews with hot reload.
- Refactor SwiftUI and AppKit code, stabilize UI tests, and investigate CPU,
memory, or rendering problems.
- Measure clean and incremental builds before changing Xcode settings or the
SwiftPM dependency graph.
- Check signing and notarization, validate App Store exports, and work with
TestFlight and App Store Connect.
Install
Apple toolchain workflows need a Mac with Xcode. From Windows or Linux, run
those steps on a Mac over SSH or through a configured remote XcodeBuildMCP
connection. Source review and portable helpers can run wherever their own
dependencies are available. Host setup
Paste this into your coding agent for guided setup.
Install Build Swift Apps from https://github.com/Xopoko/build-swift-apps.
Follow the installation guide for this agent, run the doctor checks, and
report the installed plugin and any missing dependencies.
Codex
On a Mac with git and python3, run these commands from a terminal.
mkdir -p "$HOME/.agents/plugins/plugins"
git clone https://github.com/Xopoko/build-swift-apps.git \
"$HOME/.agents/plugins/plugins/build-swift-apps"
cd "$HOME/.agents/plugins/plugins/build-swift-apps"
./scripts/install-local-plugin.sh
./scripts/doctor.sh --profile core --profile mcp
Start a new Codex chat after installation.
Claude Code
/plugin marketplace add Xopoko/build-swift-apps
/plugin install build-swift-apps@build-swift-apps
/reload-plugins
For Cursor, pi, manual installs, and optional tools, see the
installation guide.
Use it
Open your Swift project in the agent and ask for an outcome. The
build-swift-apps router points the agent to the relevant skill. You can also
name the skill in your prompt. In Claude Code, call a skill with
/build-swift-apps:<skill-name>.
Use ios-simulator-debugger to build and run this app. Show the first
screen with ios-simulator-browser and summarize any launch errors.
Use xcode-build-strategist to measure clean and incremental builds.
Recommend changes based on the timing data.
The preview launcher
runs previews from SwiftUI packages in iOS Simulator.
Included skills
Browse every skill
Build, run, debug, and test
| Skill | Purpose |
|---|
build-swift-apps | Route broad or ambiguous Swift and Apple-platform work to the right focused skill. |
macos-runtime-debugger | Build, launch, log, and debug local macOS apps and desktop executables. |
macos-swiftpm-runner | Build, run, and test SwiftPM-first macOS packages and command-line tools. |
macos-test-diagnoser | Triage failing Xcode or SwiftPM test runs and separate real regressions from setup issues. |
xcode-ui-test-stabilizer | Create, stabilize, and run Xcode UI tests with focused failure evidence. |
macos-telemetry-probe | Add lightweight Logger instrumentation and verify events through runtime logs. |
iOS Simulator, profiling, and runtime evidence
| Skill | Purpose |
|---|
ios-simulator-browser | Preferred user-facing Simulator surface: mirror an iOS app into the Codex browser and render SwiftUI package previews with hot reload. |
ios-simulator-debugger | Use XcodeBuildMCP to build, run, inspect, and debug iOS simulator apps; hand off to ios-simulator-browser for visible proof. |
ios-rocketsim-operator | Use RocketSim's bundled agent skill and CLI for visible simulator UI interaction. |
ios-ettrace-profiler | Capture and interpret symbolicated ETTrace profiles for iOS simulator flows. |
ios-memgraph-inspector | Capture, inspect, and compare simulator memory graphs with leaks evidence. |
swiftui-performance-inspector | Audit SwiftUI performance from code structure before asking for profiling evidence. |
SwiftUI, AppKit, and product UI