Mirrors an iOS Simulator into the in-app browser and renders SwiftUI previews from Swift packages with hot reload. Use for live iOS app interaction, SwiftUI previews outside Xcode Canvas, or capturing simulator proof.
Ships in build-ios-apps. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Obtain an explicit Simulator UDID from the existing iOS build/run workflow or from xcrun simctl list devices available.
Start serve-sim in a long-running terminal pinned to that simulator. Clean up any tracked stale helper for this simulator before starting, and install a trap so the helper is cleaned up when this terminal exits:
SIM="<simulator-udid>"
cleanup_serve_sim() {
npx --yes serve-sim@latest --kill "$SIM" >/dev/null 2>&1 || true
}
trap cleanup_serve_sim EXIT INT TERM HUP
cleanup_serve_sim
npx --yes serve-sim@latest "$SIM"
Open the exact local preview URL printed by serve-sim in the Codex in-app browser.
Verify that a real frame is rendering before reporting success. A loaded page alone is not proof that the simulator stream is healthy.
npx --yes serve-sim@latest --kill "$SIM" before starting another mirror for that simulator.serve-sim --kill; another thread may own a different simulator mirror.Use the bundled launcher when the requested previews live in an importable Swift package. Point it at the package manifest and select the target whose previews should be displayed. It generates a disposable host project outside the user's source tree, installs and launches that host in Simulator, and watches the package for edits.
node <skill-root>/scripts/swiftui-preview-browser.mjs \
/absolute/path/to/Package.swift \
--package-target "<target>" \
--device "<simulator-udid>"
--preview-filter <regex[, ...]>; it matches display names and code identifiers such as StatusRowView_Previews.serve-sim for that same UDID and open its printed URL in the in-app browser.PreviewProvider and #Preview declarations through the generated host..xcodeproj, .xcworkspace, Package.swift, schemes, or build settings to force preview support.For browser or preview QA, capture a browser screenshot showing the simulator frame. For hot reload QA, also report the launcher's hot reloaded package preview ... in pid ... output and show the changed frame after editing.
agents/openai.yaml (opens in a new tab)scripts/lib/xcode-project.mjs (opens in a new tab)scripts/swiftui-preview-browser.mjs (opens in a new tab)scripts/templates/FocusedPreviewApp.swift (opens in a new tab)scripts/templates/FocusedPreviewHotReloadRuntime.swift (opens in a new tab)scripts/templates/PreviewBrowserEntries.swift (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/build-ios-apps:ios-simulator-browserfrom build-ios-apps
npx claudepluginhub kael-odin/codex-plugins-zh --plugin build-ios-apps9 skills in this plugin
/ios-app-intentsDesign App Intents, app entities, and App Shortcuts for iOS system surfaces. Use when exposing app actions or content to Shortcuts, Siri, Spotlight, widgets, or controls./ios-debugger-agentBuild, run, and debug iOS apps on Simulator with XcodeBuildMCP. Use when launching an app, inspecting simulator UI or logs, or diagnosing runtime behavior./ios-ettrace-performanceCapture and interpret iOS Simulator ETTrace profiles. Use when profiling launch or runtime latency, comparing traces, or finding CPU-heavy stacks.Other plugins' skills for the same job