skills/build/SKILL.md
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.
npx skillsauth add grantiva/swift-assist buildInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
/swift-assist:build
/swift-assist:build --scheme=MyApp
/swift-assist:build --scheme=MyApp --simulator="iPhone 16 Pro"
--scheme=<name>: Xcode scheme to build (reads from grantiva.yml if omitted)--simulator=<name>: Target simulator (reads from grantiva.yml if omitted)Load scheme and simulator from grantiva.yml if not provided via arguments:
cat grantiva.yml
If grantiva.yml doesn't exist, tell the user to run /swift-assist:init first.
Use Grantiva to build:
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.
If the Grantiva runner was active, restart it so it reconnects to the new build:
grantiva runner start --bundle-id <BUNDLE_ID> --simulator "<SIMULATOR>"
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.
grantiva.yml before asking the usergrantiva for building - never call xcodebuild directlytesting
Run visual regression testing using Grantiva's diff pipeline. Capture screenshots, compare against baselines, and report visual differences. Use for catching unintended UI changes.
testing
Approve current VRT captures as new baselines. Can approve all or specific screens selectively. Use after reviewing /swift-assist:vrt results.
testing
Run generated test flows against the app in the simulator using Grantiva. Use after /swift-assist:make-tests to execute and validate your user flows.
development
Add the UI_TESTING / .mock services pattern to the app entry point so Grantiva can run tests with deterministic data and no live server. Use before make-tests when the app talks to an API.