Swift Build banner
jeremieb jeremieb

Swift Build

Development community

Description

Validate that the Swift project builds successfully. Run this after any code change before considering work done. ## Steps ### 1. Detect project type Look for (in order): - `*.xcworkspace` → use xcodebuild with workspace - `*.xcodeproj` → use xcodebuild with project - `Package.swift` → use swift build ### 2. Find scheme For xcodebuild projects, read available schemes: ```bash xcodebuild -list 2>/dev/null ``` Use the first non-test scheme found. If ambiguous, ask the user which scheme to use

Installation

Installs to ~/.claude/commands/jeremieb-swift-unit-test-instructions-swift-build.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/jeremieb/swift-unit-test-instructions/HEAD/.claude/commands/swift-build.md -o ~/.claude/commands/jeremieb-swift-unit-test-instructions-swift-build.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository