Skip to content
Back to skills

Build

ASecurity

Rebuild the iOS app after code changes and install it on the booted simulator. Use after editing Swift source files when you need a fresh build without re-running init.

  • 4 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 5, 2026
toolsswiftbash

Security analysis

A100/100

Scanned June 5, 2026

npx -y skills add grantiva/swift-assist --skill build --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Build?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Build
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/grantiva-build/badge)](https://www.skillsdirectory.com/skills/grantiva-build)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: build
description: Rebuild the iOS app after code changes and install it on the booted simulator. Use after editing Swift source files when you need a fresh build without re-running init.
argument-hint: "[--scheme=<name>] [--simulator=<name>]"
---

# Swift Assist: Build

Rebuild the app and install it on the simulator using Grantiva's build pipeline. Use this after making code changes - it's faster than re-running `/swift-assist:init` when the project is already configured.

## Usage

```
/swift-assist:build
/swift-assist:build --scheme=MyApp
/swift-assist:build --scheme=MyApp --simulator="iPhone 16 Pro"
```

## Command Options

- `--scheme=<name>`: Xcode scheme to build (reads from `grantiva.yml` if omitted)
- `--simulator=<name>`: Target simulator (reads from `grantiva.yml` if omitted)

## What This Command Does

### Phase 1: Read Config

Load scheme and simulator from `grantiva.yml` if not provided via arguments:

```bash
cat grantiva.yml
```

If `grantiva.yml` doesn't exist, tell the user to run `/swift-assist:init` first.

### Phase 2: Build

Use Grantiva to build:

```bash
grantiva build
```

This resolves the project, boots the simulator if needed, and compiles the app. If `build_settings` are defined in `grantiva.yml`, they're applied automatically.

If the build fails, report the full error output and stop. Do not proceed.

### Phase 4: Restart Runner

If the Grantiva runner was active, restart it so it reconnects to the new build:

```bash
grantiva runner start --bundle-id <BUNDLE_ID> --simulator "<SIMULATOR>"
```

### Phase 5: Confirm

```
Build complete.

  Scheme:     <SCHEME>
  Simulator:  <SIMULATOR>
  Bundle ID:  <BUNDLE_ID>

App is running. Run /swift-assist:doctor to audit or /swift-assist:test to run flows.
```

## Important Rules

1. NEVER proceed past a failed build - stop and show the full error
2. Read scheme and simulator from `grantiva.yml` before asking the user
3. Do not modify source code
4. Use `grantiva` for building - never call `xcodebuild` directly

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.