SweetPad

A command-line tool that builds, runs, debugs and tests Apple platform apps from the terminal without opening Xcode. Its short output and JSON mode suit coding agents, and it comes with agent skills that teach your agent to use it.

View on GitHub ↗
Stars
★ 1,943
Last commit
4 Dec 2026
Maintenance
Active
Licence
MIT
Category
Xcode & IDE
GitHub
sweetpad-dev/sweetpad

Overview

SweetPad calls itself "xcodebuild for humans and agents". It's a CLI that builds, runs, debugs and tests iOS, macOS, tvOS, watchOS and visionOS apps from your terminal. It works with Xcode projects and workspaces, Tuist, XcodeGen and Swift packages.

The first time you run it in a project, it asks which scheme to build and where to run it, then saves your answers. Build output is kept short: the README says a small app's build prints 7 lines. That makes it easier for an agent to read what happened.

SweetPad also ships agent skills, which are short instruction files that teach a coding agent to drive the CLI for you. With them installed, your agent knows how to pick the right destination, read diagnostics from a failed build and check build settings.

There's a separate VS Code extension too, but the CLI doesn't need it. SweetPad is released under the MIT licence.

Features

  • Short commands, prompts in place of required flags, and built-in help for every command.
  • Pick simulators, connected devices or the Mac by name with --on, or use --on booted for the simulator that's already open.
  • sweetpad run builds, installs, launches and streams logs. Press r to rebuild or q to quit.
  • Testing: run a single test, rerun failures, retry flaky tests, and export coverage and JUnit reports.
  • Hot reload with sweetpad run --hot, which applies saved Swift changes without restarting the app.
  • Debugging with breakpoints in Neovim, Zed or VS Code through sweetpad dap, plus scripted lldb sessions and structured crash reports.
  • Autocomplete: sweetpad bsp init sets up SourceKit-LSP for Neovim, Zed, Helix and Emacs.
  • JSON output and specific exit codes on every command, for scripts and CI.
  • sweetpad project new scaffolds a minimal SwiftUI app, and sweetpad format formats your Swift files.
  • Agent skills that work with any agent that reads the open skills format, such as Claude Code, Cursor, Codex, Copilot and Gemini.

Requirements

  • A Mac with Xcode installed.
  • Homebrew or mise to install the CLI.
  • For the agent skills, a coding agent that supports the open skills format, with the sweetpad CLI installed and on your PATH.

Install

  1. CLI with Homebrew. Run brew install sweetpad-dev/tap/sweetpad, then check it with sweetpad --version.

  2. CLI with mise. Run mise use -g 'github:sweetpad-dev/sweetpad[version_prefix=cli-v]'.

  3. Agent skills. Run npx skills add sweetpad-dev/sweetpad. To install into one agent only, add --agent, for example npx skills add sweetpad-dev/sweetpad --agent claude-code. Run the same command again to update the skills.

  4. Then go into your project folder and run sweetpad run.

Example

With the skills installed, open your agent in your project and ask:

"Build and run this on the booted simulator"

If the build fails, you can follow up with "figure out why the build failed".

Works with

Claude CodeCursorCodexGemini CLI

Listed in

Read the code before you install anything. SwiftAgents doesn't review or endorse the tools listed here. Active: a commit in the last 90 days. Slowing: last commit within the past year. Stale: older than a year, or archived.

Report a correction

More in this category