home / skills / willsigmon / sigstack / ios-build-expert
This skill helps iOS developers diagnose and fix Xcode build, simulator, and workflow issues with structured diagnostics and quick, reliable fixes.
npx playbooks add skill willsigmon/sigstack --skill ios-build-expertReview the files below or copy the command above to add this skill to your agents.
---
name: iOS Build Expert
description: iOS/Xcode build issues - compilation errors, simulator problems, build analysis, diagnostics, quick fixes
allowed-tools: Bash, Read, Edit, Grep
model: sonnet
---
# iOS Build Expert
Complete iOS build system expertise for Leavn app.
## Quick Commands
```bash
make clean # Clean build
make sim-build # Build for simulator
make test # Run tests
xcrun simctl list # List simulators
```
## Build Error Workflow
1. Run build, capture output: `make sim-build 2>&1 | tee /tmp/build.log`
2. Categorize errors: type errors, missing imports, actor isolation, etc.
3. Fix in dependency order (imports → types → logic)
4. Rebuild and verify
## Simulator Issues
- **Reset**: `xcrun simctl erase all`
- **Boot specific**: `xcrun simctl boot "iPhone 15 Pro"`
- **Install app**: `xcrun simctl install booted path/to/app`
- **Launch**: `xcrun simctl launch booted bundle.id`
## Common Fixes
- Missing module: Check Package.swift dependencies
- Actor isolation: Add @MainActor or nonisolated
- Type mismatch: Check @Observable vs @Published patterns
- Build settings: Verify project.yml / xcodegen
## Visual Debugging
- Screenshot: `xcrun simctl io booted screenshot /tmp/screen.png`
- Record: `xcrun simctl io booted recordVideo /tmp/video.mov`
Use when: Build failures, simulator issues, Xcode errors, diagnostics
This skill provides hands-on expertise for diagnosing and fixing iOS and Xcode build problems for Swift projects. It focuses on rapid triage of compilation errors, simulator problems, dependency issues, and build setting mismatches. The goal is to get a reproducible local build quickly and outline minimal, safe fixes to restore CI and developer productivity.
I inspect build output, classify errors by root cause (dependency, type, actor isolation, missing import, build setting), and apply fixes in dependency order to avoid cascading failures. I use simulator and CLI tools to reproduce runtime issues, capture screenshots or video, and verify installations and launches. The workflow emphasizes capturing logs, iterative rebuilds, and minimal changes to restore a green build.
What immediate evidence should I gather when a build fails?
Save the full build log, note the Xcode and Swift toolchain versions, and capture any failing file paths and first error lines before making changes.
How do I handle a simulator that refuses to boot or install the app?
Erase all simulators to clear state, boot the target device, then use simctl install and launch; capture screenshots or video to document behavior.