Skip to content

RocketSim CLI

Install and use RocketSim's built-in CLI to inspect visible elements, automate interactions, and give agents a fast path into your running Simulator.

RocketSim includes a built-in CLI that lets agents inspect visible UI and interact with the Simulator through the running RocketSim Mac app. The app stays connected to the Simulator, keeps useful state warm, and exposes a compact command line surface for agents and local automation.

For agentic development, we recommend installing both the CLI and RocketSim Agent Skill from RocketSim → Settings → CLI & Agent.

The CLI works with the Simulator UI that is already running. It does not build, install, or launch apps from an Xcode project; use Xcode or your normal build tooling for that step, then let RocketSim inspect and interact with the app on screen.

  1. Open RocketSim → Settings → CLI & Agent
  2. In Command Line Tool, click Install Command Line Tool
  3. Choose the default selected folder if it is on your PATH, or pick another folder such as /opt/homebrew/bin or /usr/local/bin
  4. Confirm the installation

RocketSim creates a rocketsim symlink in that folder. The real executable stays inside RocketSim.app, so App Store updates keep the command up to date automatically.

CLI & Agent settings showing the command line tool installer

This symlink setup is useful for both agents and CI scripts. Anything that runs rocketsim from PATH uses the same RocketSim version you have installed.

The CLI gives agents a compact workflow:

  1. Ask RocketSim which simulator is currently focused
  2. Read the visible UI elements
  3. Decide what to do next
  4. Tap, swipe, type, or press a hardware button
  5. Read the updated UI state
  6. Repeat

That loop is fast because RocketSim is already connected to the Simulator. There is no reconnection overhead between steps, and the running app can cache and optimize work across repeated commands.

RocketSim resolves booted Simulators through the same device service used by the Mac app. Commands therefore work whether the Simulator is shown in Simulator.app, Xcode 27’s Device Hub, or booted headlessly with simctl boot. Without a focused Simulator window, RocketSim automatically targets the only booted Simulator. If several are booted, focus one or pass --udid to choose one.

RocketSim is not just a standalone command that starts from scratch every time. The CLI talks to the running Mac app, which can keep simulator state, reuse context between commands, and optimize repeated screen reads and interactions.

The CLI uses RocketSim’s rs/1 protocol for agent workflows. You do not need to learn the protocol details; it is the compact, agent-optimized layer that lets RocketSim provide reliable screen reads, interaction feedback, and recovery paths while keeping output small.

RocketSim does not ship an MCP server. Read iOS Simulator MCP vs CLI and Agent Skill to see how the two approaches compare and how to choose.

On the public simulator-use benchmark in November 2026, a RocketSim sign-in took 2.7 seconds on 161 tokens, the lowest token count and the second fastest of ten tools: 9.7× fewer tokens than XcodeBuildMCP (now MobileBuildMCP) and 79× fewer than Xcode MCP. Its 0.35 second tap is the quickest among the tools that report what the tap did. Read how we test the CLI and Agent Skill for the scenarios, methodology, and improvement findings.

elements, interact, and do answer in plain lines instead of JSON, so an agent spends fewer tokens on every step. A screen read is a header with the screen hash plus one row per element. An action answers with the new screen and only what changed on it, such as text that appeared, a text field whose value changed, or a status message and error. A full sign-in costs agents well under 200 tokens to read.

Every other command prints its JSON result directly, without a wrapper, so url, findings, or not_covered sit at the top level. A failure answers {"error":{...}} and exits with code 1.

Screen reads leave out the keyboard’s own keys, its typing-predictions bar, and what the keyboard covers. Use rocketsim interact type to enter text instead of tapping keys.

Checks whether the CLI install, RocketSim app, IPC connection, Simulator state, accessibility permission, and snapshot store are ready for agent workflows.

Terminal window
rocketsim doctor

doctor also warns when the Simulator’s accessibility is switched off, which makes elements come back empty. The warning includes the xcrun simctl spawn <udid> defaults write com.apple.Accessibility ... commands that switch it back on.

Returns the currently focused simulator as JSON, including name, runtime, and UDID.

Terminal window
rocketsim simulator focused

Starts a live, interactive Simulator preview and prints its local URL:

Terminal window
rocketsim preview

Pass --port <port> to choose a port or --udid <udid> to target a specific booted Simulator. Add --lan (RocketSim Pro) to open the preview from another Mac on the same network or a Tailscale tailnet; without it, the preview stays on localhost. See Browser Preview for the interactive controls and visual feedback workflow.

Returns the accessibility elements currently visible on screen.

Terminal window
rocketsim elements [--udid <udid>] [--agent] [--agent-mode nav|act|debug]

The --agent flag is the recommended default for agent workflows. It returns compact rows inside the rs/1 response:

  • nav focuses on headings, tabs, navigation bars, and top-level controls while omitting plain static text, images, and nested duplicate text composites
  • act includes interactive element identifiers, labels, roles, values, and state
  • debug returns the full hierarchy when an action fails or an element looks wrong

Trim the answer to what the agent needs with --match <regex>, --role <a,b>, --fields <id,role,label,...>, --max-label <n>, --exclude-chrome, and --merge-twins. The filters only shorten the answer, so element ids stay stable for the next interaction. Add --since <hash> to get a one-line unchanged answer when the screen has not changed.

To inspect one spot on the screen, use rocketsim elements --at 120,340. Add --normalized to pass fractions of the screen, such as --at 0.17,0.3 --normalized. This finds content that a full screen read misses, such as the system photo picker, which runs outside your app.

Controls without an accessibility label, such as the back button in the iPhone Duo side rail, stay in the list. When they have an accessibility identifier, RocketSim adds a !identifier|id|identifier row so you can tap them with --identifier. Password fields are reported as secure text fields, so agents recognize them as sensitive; --type textField still matches them.

Elements that expose custom accessibility actions get an extra !actions|id|... row. Every element, including the controls inside a combined row, stays tappable by id.

Both compact modes omit individual software-keyboard keys because keyboard visibility is already reported in the response header. They also omit elements whose frames are fully outside the device canvas. Debug and plain JSON output remain unchanged when you need the complete hierarchy.

When the Simulator returns no accessibility elements at all, elements adds an accessibility_tree_empty issue with the recovery commands instead of an unexplained empty list. Enable AccessibilityEnabled and ApplicationAccessibilityEnabled for the Simulator, relaunch the app, and read the screen again. The issue can also appear for a moment while an app is still launching.

RocketSim reports the software keyboard as visible on iOS 26 and 27, so elements and wait keyboard agree with what is on screen.

RocketSim’s element pipeline is designed for real app navigation. It can include visible controls from top bars, navigation bars, tab bars, and other chrome that agents often need to move through a flow. When web content or other complex views expose limited accessibility data, RocketSim can add recovery hints so the agent knows when to use visual context.

For agents that need a stable view of the current screen, RocketSim provides screen and snapshot commands:

Terminal window
rocketsim screen
rocketsim snapshot --agent-mode act > state.png
rocketsim snapshot --label "Photo" --scale 2 --screen latest > photo.png

screen returns a compact description and screen hash. snapshot writes an annotated PNG whose numbered badges connect visible elements to their identifiers. Filter snapshots by label, type, identifiers, or a crop rectangle when the complete screen would add unnecessary visual context.

The JSON snapshot also includes canvasSize ([width, height] in device points), which describes the full screen the elements were laid out in. This is the union of every raw accessibility frame, including the full-screen application root, so it spans the true device bounds rather than just the box around the visible content. Use it to scale element frames onto a rendered screenshot or overlay without re-deriving the device size, which is especially important on scrollable screens where the visible content does not fill the screen.

Use --screen latest for the next action or annotated snapshot. RocketSim resolves it against the current stored screen, which avoids copying hashes between commands while still protecting the interaction from a stale snapshot.

When accessibility data is not enough, agents can request a plain PNG screenshot:

Terminal window
rocketsim screenshot > screen.png

This is useful for visual fallback flows, sparse web content, or debugging what the agent sees. The raw PNG bytes are written to stdout, so redirect them to a file. Target a specific simulator with --udid <udid> instead of the focused one.

Screenshots can also be styled with the same options RocketSim uses for its capturing tools:

Terminal window
rocketsim screenshot \
--bezel simulator \
--background "#0B1221" \
--device-shadow \
--ratio 16:9 > styled.png
OptionDescription
--background <value>Background color: transparent, a preset color, or #RRGGBB.
--bezel <style>Device frame style: none, simulator, device, or device3d (iPhone Duo only).
--frame-color <value>Device frame tint as a preset color or #RRGGBB.
--device-angle <value>iPhone Duo camera angle for screenshot: studio, front, or <yaw>,<pitch> in degrees (yaw -180…180, pitch -90…90; default front). Requires a bezel other than none. Ignored by video record.
--device-shadowRender a shadow behind the device frame.
--ratio <ratio>Output ratio: auto, 1:1, 5:4, 4:3, 3:2, or 16:9.
--ascOptimize output dimensions for App Store Connect.
--watermarkAdd the RocketSim end card to videos and GIFs. Screenshots have no end card, and RocketSim Pro removes it.
--metadataRender app metadata when available and supported by the selected ratio.
--touchesRender captured touches.
--touch-color <value>Touch color as a preset color or #RRGGBB.
--touch-strokeRender a stroke around touches.
--orientation <value>Output orientation: portrait, portraitUpsideDown, landscapeLeft, or landscapeRight.

To preview the capture in RocketSim’s floating thumbnail instead of writing bytes to stdout, add --show-floating-thumbnail:

Terminal window
rocketsim screenshot --show-floating-thumbnail

When you capture an iPhone Duo with a styled bezel, RocketSim renders the fold pose for every bezel style. Plain Duo screenshots capture only the display that shows the interface: the outer display while the Duo is closed and the inner display while it is open. See iPhone Duo for the Duo-specific commands.

Agents and scripts can record the simulator to an MP4. Recording continues until Ctrl+C, SIGTERM, or an optional duration elapses, at which point RocketSim finalizes the file and writes the bytes to stdout:

Terminal window
rocketsim video record > recording.mp4

Press Ctrl+C, send SIGTERM, or pass --duration <seconds> to stop and flush the MP4. Target a specific simulator with --udid <udid> and set the frame rate with --fps <value> (between 1 and 120, default 30):

Terminal window
rocketsim video record --fps 60 --duration 5 --udid <udid> > recording.mp4

video record accepts the same styling options as screenshot (see the table above), so you can record framed, touch-annotated, or App Store Connect–optimized clips. It ignores --device-angle, the way screenshot ignores the touch flags. As with screenshots, add --show-floating-thumbnail to send the finished recording to RocketSim’s floating thumbnail instead of stdout:

Terminal window
rocketsim video record --bezel device --touches --show-floating-thumbnail

To review or edit the recording right away, add --open-editor. It sends the recording to the floating thumbnail and opens RocketSim’s video editor, so it implies --show-floating-thumbnail:

Terminal window
rocketsim video record --touches --open-editor

If the Simulator is rotated while a recording is running, the rotation is preserved and animated in the exported video.

Record a polished demo video of a saved flow:

Terminal window
rocketsim video record --flow login --touches --zoom > demo.mp4

RocketSim starts the recording, runs the flow at a watchable pace with a pointer that glides from tap to tap, zooms into each tapped element, and stops the recording when the flow ends. When your app changes, record the flow again to get an up-to-date video. A flow that fails stops the recording without output. --zoom needs room around the device, so it defaults to the 1:1 ratio and cannot be combined with --asc.

Agents can use the locations you saved under Settings → App Actions → Locations:

Terminal window
rocketsim location list
rocketsim location set "Office"
rocketsim location set --latitude 52.37 --longitude 4.89
rocketsim location current
rocketsim location clear

list shows the saved locations for the app in front, set applies one by name or identifier or sets coordinates, clear stops simulating, and current returns the last location RocketSim applied. Pass --bundle-id to list the locations of another app and --udid to target a specific Simulator.

RocketSim supports the iPhone Duo Simulator from the command line. screenshot and video record render the fold pose for every styled bezel, including the Duo-only --bezel device3d, which uses Apple’s 3D folding model. Passing --bezel device3d for another device returns an error.

Two commands control and inspect the hinge:

Terminal window
rocketsim duo pose closed|book|open [--udid <udid>]
rocketsim duo hinge [--udid <udid>]
  • duo pose moves the Simulator hinge to the closed, book, or open pose. It does not need Device Hub or the macOS Accessibility permission.
  • duo pose waits for the hinge animation to finish and polls the angle for up to about six seconds before it gives up with wait_timeout, so a slow hinge no longer fails a pose that is still moving.
  • duo hinge reports hinge_state (closed, openFlat, or partiallyOpen) and hinge_angle_degrees, where 0 is closed and 180 is fully flat.

A typical agent flow poses the Duo, then captures it:

Terminal window
rocketsim duo pose open
rocketsim screenshot --bezel device3d > duo-open.png

--device-angle <studio|front|<yaw>,<pitch>> sets the camera angle of an iPhone Duo screenshot in degrees. Positive yaw views the device from its right, and positive pitch views it from above. Yaw -180…180 turns the camera all the way around the device; pitch -90…90 goes from straight below to straight above. studio is 18,10, the angled studio view; front is 0,0, a head-on view and the default when you omit the flag. RocketSim does not carry the last angle you picked in the capture editor into the next CLI capture—only an explicit --device-angle or the angle stored on that capture applies. The option needs a bezel other than none.

Pass the value as one argument. Negative yaw such as -20,5 works without quoting or =; a bare --device-angle followed by another option fails with “Missing value for ‘—device-angle’”. Fractional degrees use . and the comma separates yaw and pitch (12.5,-3). RocketSim versions released before this flag ignore it and render at the default angle. A malformed or out-of-range value fails with invalid_argument before RocketSim captures the screen. Out-of-range angles are rejected, not clamped.

context.reasonWhen
unsupported_targetThe target simulator is not an iPhone Duo.
device_angle_requires_bezel--bezel none (the default) is used.
invalid_device_angleThe value is not studio, front, or two comma-separated numbers within the yaw and pitch ranges.
Terminal window
# Studio framing: viewed slightly from the right and above
rocketsim screenshot --bezel device3d --device-angle studio > duo-studio.png
# Head-on, for a flat marketing shot
rocketsim screenshot --bezel device3d --device-angle front > duo-front.png
# Viewed from the left and slightly above
rocketsim screenshot --bezel device3d --device-angle -20,5 > duo-left.png
# Combined with a finish, background, and ratio
rocketsim screenshot --bezel device3d --device-color night-sky \
--device-angle 25,15 --background "#101820" --ratio 4:3 > duo-styled.png
# Keep it in RocketSim's floating thumbnail; the editor opens at the same angle
rocketsim screenshot --bezel device3d --device-angle 10,-5 --show-floating-thumbnail

A screenshot sent to the floating thumbnail stores the angle with the capture, so opening the editor starts from that angle and you can keep adjusting it there.

Audit the visible Simulator screen for accessibility problems, then validate your fixes with the same command:

Terminal window
rocketsim accessibility-audit [--udid <udid>] [--format compact|full] [--no-contrast]

The response contains a score from 0 to 100, error and warning counts, and findings grouped by rule with the affected element ids, frames, and a suggested fix. Narrow the run with --rules, --exclude-rules, or --severity error|warning; an unknown rule ID returns an invalid_argument error that lists the valid IDs. Pass --screen latest, or an explicit screen hash from rocketsim screen, to guard against auditing a different screen than expected. The command waits for the screen to settle (about 2 seconds at most) before auditing.

not_covered lists checks that were skipped or couldn’t be verified, such as contrast_unverifiable, native_control_skipped, system_chrome_skipped, overlap_scroll_dependent, and unsettled_screen. An entry means the check wasn’t judged, not that it passed. With --format full, label_review adds each labeled control, image, and group with its neighboring labels, so your agent can review whether the labels make sense without sight.

The audit can’t detect modals such as sheets, covers, popovers, alerts, or SwiftUI .isModal. It also audits the content behind them. Treat findings behind a visible modal as out of scope, or dismiss the modal and audit again.

Read Accessibility Audit for the rules, the score, and the audit, fix, and validate loop for agents.

Agents can test offline and poor-network handling without disconnecting the Mac:

Terminal window
rocketsim network set airplane
rocketsim network set 3g
rocketsim network set 100-loss --bundle-id com.example.app
rocketsim network status
rocketsim network off

Network control requires RocketSim Pro and an approved RocketSim Network Extension. Without --bundle-id, RocketSim targets the current Recent Builds. Always turn the condition off after the test.

Network commands are bounded: when the extension is not approved or does not respond within roughly ten seconds, the command fails fast with a network_extension_not_ready error instead of hanging. Its context.reason tells the agent whether to ask you to approve the extension in RocketSim’s Networking window (needs_user_approval) or to simply retry (timed_out).

See Network Speed Control & Simulator Airplane Mode for profiles and setup.

Agents can wait for screen changes or elements before continuing:

Terminal window
rocketsim wait screen-changed
rocketsim wait element --label "Continue"
rocketsim wait element --identifier "login.submit"
rocketsim wait keyboard --state shown
rocketsim wait keyboard --state hidden --timeout 1
rocketsim wait time --ms 800
rocketsim wait settled
rocketsim wait element --type cell --index 3

wait settled returns once no element or keyboard frame has moved for 300 ms, which is useful after a sheet, picker, or navigation animates in. wait element --type cell --index 3 waits for the third cell.

This keeps agent flows from racing ahead before the app has finished navigating or rendering. For keyboard waits, shown is an alias for visible; use hidden to wait for dismissal. Prefer observable waits; use the capped wait time --ms <1...10000> fallback only when no screen, element, or keyboard postcondition exists.

When the perception backend itself is failing (rather than the predicate simply staying false), wait reports that backend failure as an execution_failed error instead of a misleading timeout, so agents can run rocketsim doctor and recover instead of retrying a wait that can never succeed.

RocketSim supports the most common agent interactions through rocketsim interact:

Terminal window
rocketsim interact tap --label "Continue"
rocketsim interact tap --label "Delete" --index 2 --screen latest
rocketsim interact activate --label "Hidden Debug Menu"
rocketsim interact tap 210 642
rocketsim interact long-press --label "Delete"
rocketsim interact long-press --label "Debug" --touches 2 --duration 1
rocketsim interact swipe --direction up
rocketsim interact swipe --from 200,650 --to 200,150
rocketsim interact scroll --label "Results" --direction up --pages 1 --screen latest
rocketsim interact focus --label "Email" --screen latest
rocketsim interact type "hello@example.com"
rocketsim interact type "Zoey_yz? café" --identifier "search.field" --screen latest
rocketsim interact type "new text" --replace --identifier "search.field" --screen latest
rocketsim interact clear --identifier "search.field" --screen latest
rocketsim interact tap --at 0.5,0.3
rocketsim interact tap --grid 4x6 --cell 1
rocketsim interact rotate --orientation landscapeLeft
rocketsim interact button home
rocketsim interact biometric match
rocketsim interact biometric nomatch

interact is designed to work with fresh screen state. After dispatching an interaction, RocketSim actively refreshes snapshots during a bounded settlement window before computing the result delta. The returned screen_changed value therefore reflects the post-interaction screen instead of a stale cached snapshot. Large appeared and disappeared detail arrays are capped while appeared_count and disappeared_count retain the complete totals.

interact type presses the keys that produce each character on the keyboard layout of the Simulator, so text such as Zoey_yz? café comes out exactly as written on a German, French, British, Spanish, Italian, or another common layout. Pass --identifier or another selector together with --screen to focus a field first. When RocketSim can’t type the text, the command fails with invalid_argument instead of reporting success. context.reason is untypeable_characters (with the characters the layout can’t produce, for example emoji) or unsupported_keyboard_layout (a keyboard RocketSim has no verified mapping for). Switch the Simulator to a common layout in Settings, or enter the text another way and read the field back to verify.

Use interact clear to empty a text field and interact type --replace to swap its text in one step.

interact tap --at 0.5,0.3 taps a fraction of the screen (0,0 is the top left, 1,1 the bottom right). --grid 4x6 --cell 1 taps the center of the first cell of a 4-by-6 grid over the whole screen, counted left to right, then top to bottom. Use them on screens without accessibility elements, such as the photo picker. Prefer a selector whenever the screen offers one.

interact rotate --orientation <portrait|portraitUpsideDown|landscapeLeft|landscapeRight> rotates an iPhone or iPad Simulator and returns once the rotation is applied, so a script can capture the landscape screen right away. It also works as a step in rocketsim do. It is not available on iPhone Duo; use duo pose there.

Every interact command accepts --settle full|quick|none. By default, RocketSim returns as soon as the screen stops moving, so a typical tap answers in under a second. Choose quick or none when speed matters more than waiting for the screen to settle. Selectors wait up to 1.5 seconds for their element by default.

Use interact activate for an accessibility element that does not respond to coordinate taps, such as a hidden debug control. It performs an accessibility press on the resolved element instead of sending a HID tap.

Use --touches 2 or --number-of-touches 2 with tap or long-press to automate two-finger gestures.

Use interact biometric match to complete a Face ID request successfully, or nomatch to test the failure path. Biometric commands target the active Simulator and do not take an element selector.

When the next steps are already known, combine them in one rocketsim do process. Smart refresh keeps screen state current between interactions while avoiding redundant reads:

Terminal window
rocketsim do \
--refresh-policy smart \
--step "interact tap --label 'Sign In' --screen latest" \
--step "wait element --label Email --timeout 2" \
--step "interact type 'hello@example.com' --label Email --screen latest" \
--step "interact tap --label Submit --screen latest"

Prefer a concrete postcondition such as an element appearing or the keyboard hiding. Interaction responses already include a screen delta, so an extra screen-change wait is often unnecessary.

With --refresh-policy smart, batches of coordinate taps and swipes finish about 35% faster, and filling in a form (email, password, and Sign In) is about 20% faster than with separate commands.

Each step normally starts with interact, wait, elements, or screen. Interaction actions such as tap, swipe, and focus are also accepted directly as shorthand inside a batch.

The --agent flag replaces the full accessibility hierarchy with compact pipe-delimited rows. That means less context per screen read and easier recovery after each interaction.

An act response looks like this:

@a3f291bc #4
7|button|Continue
8|textField|Email

The first line is the screen hash and the sequence number; each row is an element id, role, label, and, when there is one, value and state. Rows no longer repeat that an element is enabled.

The identifiers are ephemeral and belong to that screen. Prefer a label selector, use 1-based --index for repeated labels, or use an identifier with --screen latest when duplicate labels make the selector ambiguous. Use debug mode or omit --agent when you need parent relationships, raw frames, scrollable-container metadata, or the complete hierarchy.

This structured output for agents works especially well with the RocketSim Agent Skill, which connects your AI coding tool to the CLI automatically. We highly recommend using the Agent Skill instead of asking an agent to invent CLI calls on its own.

When possible, agents should prefer targeting elements by label, type, or value instead of raw coordinates:

Terminal window
rocketsim interact tap --label "Submit" --screen latest
rocketsim interact tap --type Button --label "OK" --screen latest
rocketsim interact long-press --label "Reorder" --duration 1.5 --screen latest
rocketsim interact tap --identifier "login.submit" --screen latest

--identifier matches the element’s accessibility identifier exactly, including case. It is the most stable selector when labels are localized or change at runtime, because identifiers don’t. It works with tap, activate, focus, long-press, type, wait element, and snapshot, and you can combine it with the other selectors.

Selector-based taps first try semantic accessibility activation, which is more reliable than a coordinate tap when the visual affordance does not align perfectly with the accessibility frame — think toggles, list rows, and buttons with asymmetric tappable areas. When semantic activation is unavailable, RocketSim falls back to a precise HID tap at the element’s center. Coordinate taps and multi-touch taps always use HID directly. Use interact activate when you explicitly need an accessibility press without any HID fallback, such as for a hidden debug control that ignores coordinate hit-testing.

When a selector matches several elements with the same label, RocketSim automatically chooses the only actionable match if the others are non-actionable containers around it. For genuinely distinct matches, pass 1-based --index <N> in reading order or use an element id.

Coordinates are still available as a fallback when the element is visible on screen but not exposed with a stable label. Raw coordinate and untargeted actions accept the same --screen flag; pass the explicit hash from the snapshot where you chose the coordinate to detect a stale screen before dispatch.

For common gestures, agents can use named directions instead of explicit coordinates:

Terminal window
rocketsim interact swipe --direction up
rocketsim interact swipe --direction back
rocketsim interact swipe --direction notification-center
rocketsim interact swipe --direction control-center

Valid directions: up, down, left, right, back, notification-center, control-center.

These prompts work well with the CLI interaction loop:

Use RocketSim to read the visible elements and tap the primary action button

Use RocketSim to swipe through the onboarding carousel and verify each page title

Use RocketSim to type a search query into the search field and select the first result

Use RocketSim to press the home button, then inspect the Simulator after the app is open again

Commands that take --udid (such as screen, elements, interact, screenshot, and duo) also find a Simulator that was cloned and booted with xcrun simctl, without opening it in Simulator.app. If RocketSim doesn’t know the UDID as booted yet, it refreshes its device list from CoreSimulator. When a UDID still can’t be found, the simulator_not_found error explains how to check it with xcrun simctl list devices and when to retry.

The CLI works when:

  • RocketSim is running
  • At least one iOS Simulator is booted
  • The command line tool is installed from Settings → CLI & Agent
  • The RocketSim Agent Skill has been installed so agents can discover RocketSim automatically

Run rocketsim doctor when the CLI cannot connect, a booted Simulator is not discovered, or accessibility and interactions fail unexpectedly. Routine navigation should start with rocketsim screen or compact elements output instead.

RocketSim refreshes stale Simulator service caches once before failing a command. If the retry is exhausted, the rs/1 response uses simulator_not_booted with context.reason set to simulator_control_lookup_failed. Boot the Simulator, verify its UDID, and retry once. When several Simulators are booted without a focused window, simulator_not_focused tells you to focus one or pass --udid.

On Xcode 27 runtimes, accessibility may be unavailable because of Apple’s remote-automation restrictions. RocketSim returns accessibility_unavailable immediately instead of hanging. In that state, use plain screenshots and coordinate interactions; do not keep retrying accessibility reads, selector interactions, waits, or annotated snapshots for that Simulator.