/app:xcode-dev-loopfrom app
Builds, tests, and visually inspects Xcode projects from the command line: xcodebuild runs, Swift Testing results, simulator launch, and screenshots.
Ships in app. 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.
Discover, build in the background, read results, launch on a simulator, capture screens.
This loop runs and inspects; it does not author Swift source or tests. Route
Swift Testing authoring to swift-testing, XCTest UI automation to xcuitest,
and existing non-UI XCTest unit/integration or measure tests to the project's
established XCTest conventions with tdd. A dedicated reusable non-UI XCTest
authoring guide remains a gap. Preserve the suite's framework rather than forcing
a migration. Return here to execute and interpret the real result.
.xcworkspace or .xcodeproj.xcodebuild -list -workspace <name>.xcworkspace.xcodebuild -list -project <name>.xcodeproj (use this form when you need a target name).xcodebuild test -workspace <name>.xcworkspace -scheme <Scheme>. The test action fails
without a scheme.xcrun simctl list devices available -j; resolve the UDID
once, then reuse it.xcrun simctl help <subcommand>.DEVELOPER_DIR=/Applications/Xcode-<version>.app/Contents/Developer for the whole
session, so every xcodebuild and xcrun call selects the same Xcode.Never let xcodebuild hold the foreground: a clean build or test run routinely exceeds
the 600 s command timeout, and a command killed at the timeout leaves no verdict.
Start the run in the background, redirect its output to a log file in the scratchpad, and
keep a handle whose exit status you can read later. Prefer the harness's background
facility (Bash with run_in_background: true) and the task handle it returns.
With only a plain shell, make the run record its own exit status; a later shell cannot
wait for another shell's child. Give every attempt its own log and status path; a stale
status file ends the wait at once and reports the wrong result:
( xcodebuild ... > "$LOG" 2>&1; echo $? > "$LOG.status" ) & # start it
until [ -f "$LOG.status" ]; do sleep 5; done # wait, in a later call
Use CODE_SIGNING_ALLOWED=NO for simulator builds.
Pin the destination as platform=iOS Simulator,id=<udid>.
When one target or test matters, scope the run with -only-testing:<TestTarget>[/<Suite>/<test>]; preserve the log.
Never wait with a chained foreground sleep; the harness blocks it.
Wait on the kept handle with the harness's blocking wait (Monitor, or the task-output
wait), or for the .status file with the loop above. Read the exit status first, then the
log's terminal marker. Do not wait by grep alone: it keeps polling when xcodebuild exits
before writing a marker.
Test Case ... passed lines.Executed 0 tests, with 0 failures is the empty XCTest summary; it proves nothing.-resultBundlePath with a new path per attempt; xcodebuild fails when the
path already exists.xcrun xcresulttool get test-results summary --path <bundle>. A pass needs the expected
non-zero test count there, no failure or crash there, ** TEST SUCCEEDED **, and a zero
exit status (principle-prove-it-works).✔ Test run with N tests in M suites passed, with N greater than zero,
corroborates that count; a pattern that also matches zero proves nothing. A filtered or
-quiet log can omit the line, so never treat its absence alone as the verdict.xcresulttool get test-results tests --path <bundle>; totals alone do not prove each selected case ran. Inspect test-details
and metrics when a case fails or measures performance, preserving the actual
measurements and failure reason. Pin the toolchain, configuration, device and
workload for comparisons. State the non-UI XCTest authoring-guide gap explicitly
when using project conventions as the fallback.principle-gaps-are-not-passes). Suspect the selection before the code: confirm
-only-testing still names the current suite and test after any rename, and that the
target belongs to the test plan.\*\* BUILD SUCCEEDED \*\*,
\*\* BUILD FAILED \*\*, \*\* TEST SUCCEEDED \*\*, \*\* TEST FAILED \*\*,
Testing failed:, and ^error:. Judge the marker together with the exit status.Test Suite '.*' started,
and Swift Testing prints a Suite .* started record. Match them case-sensitively as printed.Test crashed with signal abrt; it may appear only there. The log may repeat it as an
underlying error, but the bundle is the reliable source. Do not re-run blind.The test runner hung before establishing connection and diagnostic-collection
timeouts as a suspected environmental fault, not a proven diagnosis. Shut down the
pinned simulator (xcrun simctl shutdown <udid>) only if this run created and still
owns it, then retry once within the run's time bounds with a new result-bundle path.
Pinning a pre-existing device does not confer ownership: preserve it and report
blocked when recovery needs its shutdown. Never use xcrun simctl shutdown all.TEST_RUNNER_<NAME>=<value> on the xcodebuild test command; Xcode strips the
prefix and gives the variable to the test runner process. A UI test target's app under test
does not receive it; set XCUIApplication.launchEnvironment for that case.test-without-building runs the product and .xctestrun file an earlier build produced,
so it can report a success that excludes your latest source change. Rebuild with
xcodebuild test before you trust a pass, and whenever that product is the suspect.principle-prove-it-works).
Record revision plus relevant uncommitted-source identity and bind it to the
actual built, installed and launched product; a matching HEAD alone is insufficient.simctl install needs a booted device. Boot the pinned device with
xcrun simctl bootstatus <udid> -b, which boots it if shut down and waits for the boot to
finish. Do not call xcrun simctl boot first: it fails on a running device.-derivedDataPath <dir> to the build, or
read BUILT_PRODUCTS_DIR and FULL_PRODUCT_NAME from xcodebuild -showBuildSettings.
On that call repeat every flag the build used, including -derivedDataPath, the scheme,
and the destination; different flags report another build's product path./usr/libexec/PlistBuddy -c 'Print :CFBundleIdentifier' <app-path>/Info.plist..app path, then its
launch action with the bundle id. Pass the pinned UDID to both; their device argument is
optional and defaults elsewhere.DEVELOPER_DIR exported in a shell. When the run
needs a beta Xcode, use the xcrun commands with that DEVELOPER_DIR instead.Failed to spawn xcrun (via disclaimer), fall back to
xcrun simctl install <udid> <app-path>, then xcrun simctl launch <udid> <bundle-id>.xcrun simctl openurl <udid> <scheme>://<path>) or existing
DEBUG/seed mechanism may establish a screen or fixture precondition. It must
not replace the public interaction that the claimed journey is meant to prove.
Use accessible UI automation for that boundary, not blind coordinate taps.
For capture-only screen setup, prefer an existing deep link or DEBUG scenario
over UI navigation; its purpose here is to reach the state, not prove creation
or another public-action boundary.DeviceInteraction*)When Xcode's DeviceInteraction* MCP tools are available (and you want Xcode to build, install, drive, and capture on a device or simulator), use this lifecycle — and read references/device-interaction.md for the full interactionCommand syntax (gestures, keyboard, foldable hinge, watchOS crown, and tvOS focus-based Siri Remote chaining):
DeviceInteractionStartWorkspaceSession (workspace-backed; start early, runs in the background; required before DeviceInteractionInstallAndRun) when verifying the app you are building, or DeviceInteractionStartSession only for an already-installed app. Pass a device identifier, omit it for the current destination, or pass "" to list available targets.DeviceInteractionInstallAndRun after each code change. Pass per-run commandLineArguments (for example ["$(inherited)", "--reset-state"]) and environmentVariables (for example {"$(inherited)": "", "DEBUG_MODE": "1"}) instead of editing the Xcode scheme directly.DeviceEventSynthesize):
DeviceEventSynthesize with an empty interactionCommand to capture the hierarchy and screenshot before interacting, and capture again after each interaction to verify the outcome.hitPoint coordinates from the hierarchy over raw screenshot estimates. State the fallback explicitly: fall back to screenshot-estimated coordinates only after confirming (via recapture) that a hitPoint tap had no effect, or when an element is marked isRemoteLeafPlaceholder.activationBundleId): Application activation is expensive, so pass activationBundleId to DeviceEventSynthesize only when interacting with an element whose hierarchy line carries activationBundleId: <bundle-id> (never on ordinary controls).DeviceInteractionEndSession when verification finishes — leaving sessions open is resource-heavy.xcrun simctl io <udid> screenshot <path>.png when
the file must persist for comparison, the MCP screenshot action to look now. Never use
both for the same frame.round2/01-hub-gate.png) so rounds diff cleanly against a baseline.xcrun simctl bootstatus <udid> -b, then read the accessibility hierarchy and confirm no
system alert covers the view. Capture only after that check passes; a fixed short delay is
not evidence (principle-observe-dont-infer).Use independently owned simulator/app/fixture state when a run mutates data. Do not erase or reset a user's shared simulator or store. Record ownership before launch; only a created device may be shut down/deleted as this run's teardown. On success, error or cancellation, release only resources still owned by the run, never kill by process name or trust a reused PID. Preserve logs, result bundles and captures outside cleanup targets and confirm they survive teardown. A blocked device/entitlement/system boundary is not proved through another simulator path.
Use synthetic data and disposable accounts. Inspect and redact shareable log, result-bundle and capture derivatives; keep necessary originals access-controlled under the project's retention policy. Never publish credentials, customer data or whole unreviewed bundles.
In a capture plan, name the pinned UDID and derive the bundle identifier from the intended build; pass both to the launch command. Report missing state proof, failed cleanup and unavailable evidence explicitly rather than implying success.
principle-sequence-verifiable-units).app:debug — structured feedback loop for simulator failures, user-reported or observedcore:visual-feedback — interactive appearance diagnosis and before/after
review; this loop supplies the execution, captures and identity/state evidence.app:swift-testing — Swift Testing authoring; app:xcuitest —
XCTest UI authoring. Keep non-UI XCTest tests in their existing framework.app:swiftui-architecture — SwiftUI patterns for the code under testWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
xcodebuild, simulator, swift-testing, ios-testing, command-line-build
npx claudepluginhub mintuz/skills --plugin app19 skills in this plugin
/app-intent-driven-developmentWHEN designing or debugging App Intent-first iOS features for Siri, Shortcuts, widgets, Live Activities, or reuse of an existing intent in SwiftUI; NOT for actions with no system surface; provides AppEntity, metadata, prompting, and view-reuse patterns./app-intents-whats-new-27New App Intents APIs, behaviors, and deprecations in iOS 26 and iOS 27 (and aligned OS releases). Use when adopting, migrating to, or asked about: supportedModes / IntentModes and the deprecated openAppWhenRun; continueInForeground; UndoableIntent; requestChoice; CancellableIntent; LongRunningIntent / performBackgroundTask; IntentExecutionTargets; SnippetIntent interactive snippets; Visual Intelligence with IntentValueQuery / SemanticContentDescriptor / @UnionValue; onscreen appEntityIdentifier; Spotlight with @ComputedProperty / @DeferredProperty(indexingKey:), IndexedEntityQuery, relatedAppEntityIdentifier; RelevantEntities; SyncableEntity / EntityOwnership; SystemShortcut / RunSystemShortcutIntent; EntityCollection; AppUnionValue; @AppIntent(schema:) schemas (replacing deprecated @AssistantIntent); AppIntentsTesting; or what's new in App Intents. For evergreen best practices, use the app-intents-specialist skill instead./app-resizabilityUse when an app's layout must adapt to a window that changes size while the app runs, or when an app must support more than one window. That includes being asked to make an app resizable or support a resizable window, a layout that breaks or does not adapt as the window resizes, and preparing or optimizing an app for the foldable iPhone Duo, split-screen multitasking, or Stage Manager. Modernizes the app by replacing legacy shared-state APIs with context-appropriate alternatives: mainScreen, interfaceOrientation, userInterfaceIdiom, application and scene lifecycle, and safe area insets./app-store-keyword-opsWHEN mining, auditing, or updating localized iOS App Store keywords with Astro competitor metrics; NOT for Android listings, release notes, or App Review submission; proposes only feature-relevant, locale-specific candidates with verified popularity and difficulty./app-store-scraperWHEN scraping iOS/macOS App Store data (apps, reviews, ratings, search); NOT for installing or testing apps; retrieves structured JSON data using iTunes/App Store APIs with curl and jq formatting
/asc-screenshotsWHEN uploading, replacing, or updating App Store screenshots or previews for a version or locale, whether or not the user names helm-asc; NOT for generating, framing, or designing the images; encodes the staging layout, locale mapping, sandbox path rules, and dry-run-first upload procedure.
Other plugins' skills for the same job