Skip to content

Accessibility Audit for the iOS Simulator

Audit the iOS Simulator for missing labels, small tap targets, low contrast, and VoiceOver issues in the UI, or automate audits, fixes, and validation via the CLI.

RocketSim runs an accessibility audit on the current iOS Simulator screen from the Accessibility window Audit tab or the rocketsim accessibility-audit CLI, reporting missing labels, small tap targets, low contrast, and VoiceOver issues with a score and fix prompts. Use the side window for a manual pass or automate audits, fixes, and re-validation in an agent loop.

Reviewing accessibility by hand takes time, and it’s easy to miss a missing label or a tap target that’s just a few points too small. The Audit tab in RocketSim’s Accessibility window checks the current Simulator screen for you.

You can run an audit in two ways:

  • In the UI — Click Run Audit in the side window to see a score, review findings, highlight affected elements, and copy a fix prompt for your agent.
  • From the CLI — Run rocketsim accessibility-audit to automate audits, fixes, and validation, for example in an agent loop.

  1. Open the Simulator with your app on the screen you want to check
  2. In RocketSim’s side window, open the Accessibility tab
  3. Select the Audit tab
  4. Click Run Audit

RocketSim doesn’t audit automatically when you open the tab. Run it whenever the screen is in the state you want to check. After the screen changes, RocketSim marks the previous result as stale so you know to run it again.

The score runs from 0 to 100 and reflects how many rules pass for the current screen. Every rule that ran is one slice of the score, and rules that can report errors count double. A failing rule loses part of its slice depending on its severity, whether its findings are heuristic, and how many elements it affects. Each added rule adds a slice, so a screen that fails a new rule scores lower than it did before that rule existed:

ScoreBand
90–100Great
70–89Good
0–69Needs work

A screen with any error-level finding can’t reach the Great band.

Findings are grouped by rule, each with an explanation of the problem and a suggested fix. RocketSim highlights the affected elements on the Simulator, and the highlights follow the screen as elements move, for example while you scroll.

Highlights aren’t available while Xcode 27’s Device Hub is in expanded mode. Switch to Compact Mode to see them. See Device Hub Support.

Select the findings you want to fix and click Copy Prompt. RocketSim creates a focused prompt for your AI coding agent that tells it to:

  • Keep the layout unchanged
  • Fix the findings in one batch
  • Compare element frames before and after the fix

Paste the prompt into your agent, let it fix the findings, and run the audit again to confirm the score improves.

The audit combines deterministic rules, which are reliable, with heuristic rules that flag likely problems for you to review.

RuleWhat it flags
missing_labelInteractive elements without an accessibility label
image_without_labelImages that VoiceOver reads without a description
label_is_asset_name, non_descriptive_labelLabels that look like asset names, filenames, or identifiers
label_style_punctuationLabels that end with sentence punctuation or contain a sentence break
label_style_capitalizationLabels that start in lowercase or are written in ALL CAPS
label_style_too_longLabels with more than 6 words or 50 characters
label_style_repetitiveLabels that repeat a word, or repeat the label of their container or neighbor
image_possibly_decorativeSmall icons next to matching text, and full-screen background images, that VoiceOver may not need to read
redundant_role_in_labelLabels that repeat the role, such as “Settings button”
duplicate_labelsDifferent elements that VoiceOver announces identically
adjustable_without_valueSliders and steppers that don’t expose a value
hit_region_smallTap targets below 44×44 points (an error below 28×28 points)
overlapping_targetsTap targets that overlap each other
offscreen_content_not_scrollableContent that continues offscreen without being reachable through scrolling
parent_child_conflictControls that a combined row hides from VoiceOver
fragmented_groupContent that should be one VoiceOver element but is split into several
no_heading_on_screen, heading_trait_missingScreens without headings, or section titles without the heading trait
selected_state_missingTab or segmented controls that don’t expose which item is selected
contrast_lowText with low contrast against its background (heuristic)

The label_style_* rules and image_possibly_decorative are heuristic warnings about label wording. RocketSim has no language model, so they only check what a script can know: punctuation, case, length, repetition, and whether a small icon sits next to text that already says the same thing. They judge interactive elements, images, and groups, and skip static text, headings, text field values, system bar buttons, and native controls. For an image that adds nothing, hide it from VoiceOver with .accessibilityHidden(true).

The audit only reports what VoiceOver users can reach for rules about VoiceOver output. Touch target and contrast rules still check every element. RocketSim also avoids false positives for common patterns:

  • heading_trait_missing skips text inside a combined element, values with a unit such as 250 ms or 601 MB, and combined media tiles (a thumbnail whose label joins a title with a duration).
  • Grouped tiles under a heading aren’t reported as heading problems.
  • Text covered by a floating control is measured on its visible part.
  • Controls that only overlap at the current scroll position are listed as scroll dependent instead of as an error.
  • Content beyond the edge of a SwiftUI scroll view, carousel, or horizontal strip isn’t reported as stale.
  • Toggles, steppers, sliders, segmented control segments, and navigation and bottom bar buttons aren’t reported for hit_region_small, because the system sizes them.
  • Text on photos, materials, and gradients isn’t judged for contrast.
  • non_descriptive_label mentions a nested readable label when one exists, and duplicate_labels shows the shared value.

Before auditing, RocketSim waits (about 2 seconds at most) for the screen to stop changing, so a transition or animation in flight isn’t audited.

Some accessibility problems can’t be detected from the screen alone, and some checks are skipped when they can’t be done reliably. The audit lists these in a not covered section so you know what to review manually. A not_covered entry means the check was skipped or couldn’t be verified. It doesn’t mean the check passed.

The CLI reports these entries in data.not_covered:

EntryMeaning
accessibility_hintHints can’t be read from the accessibility tree.
color_only_informationInformation conveyed only by color can’t be detected.
default_size_text_clippingText clipped at the default text size can’t be detected.
contrast_unverifiableText on a photo, gradient, blur, or system bar has no reliable color reading. Check the contrast manually.
native_control_skippedA system-drawn control, such as a toggle, stepper, or segmented control segment, was exempt from hit_region_small.
system_chrome_skippedA navigation or bottom bar button was exempt from hit_region_small because the system sizes it.
overlap_scroll_dependentTwo controls overlap only at the current scroll position. Scroll and audit again, or verify manually.
unsettled_screenThe screen was still changing when the wait ended, so findings may describe a transition. Wait until idle and re-audit.

Contrast checks can also add contrast_covered (text mostly covered by a floating control), contrast_unavailable (frame capture wasn’t available), and offscreen_content (content below the fold or beyond a scroll view edge, where contrast isn’t measured). Agents should not resize system-drawn controls listed under native_control_skipped or system_chrome_skipped.

The audit can’t detect modals. SwiftUI .isModal, UIKit accessibilityViewIsModal, sheets, covers, popovers, and alerts leave no marker in the accessibility payload, and the content behind them stays in the tree. While a modal is visible, the audit still reports that background content. Nodes that are invisible but still in the tree, such as opacity(0) or positioned offscreen, are audited too, with or without .isModal.

When a modal is on screen:

  • Treat findings whose frames sit behind the modal as out of scope for the current UI, or dismiss the modal and audit again.
  • Hide invisible nodes that shouldn’t be exposed to assistive technologies with accessibilityHidden(true).

The audit reads the accessibility tree. It doesn’t run VoiceOver, so VoiceOver behavior itself isn’t verified.

The same audit is available from the command line, which makes it a good fit for agents, scripts, and CI-style checks. Install the CLI from Settings → CLI & Agent first. See RocketSim CLI for setup.

Terminal window
rocketsim accessibility-audit \
[--udid <udid>] \
[--screen <hash>|latest] \
[--rules <id,id,...>] \
[--exclude-rules <id,...>] \
[--severity error|warning] \
[--format compact|full] \
[--no-contrast]
OptionDescription
--udid <udid>Audit a specific booted Simulator instead of the focused one.
--screen <hash>|latestGuard the audit against a changed screen. Pass a screen hash from rocketsim screen, or latest to use the current stored screen.
--rules, --exclude-rulesRun or skip specific rules by ID. An unknown ID returns an invalid_argument error that lists the valid IDs.
--severity error|warningOnly return findings of the given severity.
--format compact|fullcompact (default) groups repeated findings per rule. full returns one finding per occurrence and adds label_review.
--no-contrastSkip the heuristic contrast checks.

The response uses the rs/1 protocol and includes:

  • A summary with the score, number of errors, warnings, and heuristic findings, and elements_audited
  • findings grouped by rule with a severity, whether the rule is deterministic or heuristic, the affected element ids and frames, a message, and a suggested fix
  • not_covered with what the audit skipped or couldn’t verify, as described in What the audit doesn’t cover
  • With --format full, label_review: one {id, role, label, siblings} entry for every control, image, and group with a label, where siblings are the other labels under the same parent (at most 8). --rules, --exclude-rules, and --severity don’t affect it, and compact omits it

Use label_review for the review the rules can’t do: read each label as a VoiceOver user would, without seeing the screen, and check that it names the action or purpose, differs from its siblings, and is localized in the app’s language.

The CLI turns accessibility work into a loop your AI agent can run on its own:

  1. Audit — The agent runs rocketsim accessibility-audit on the screen under test.
  2. Fix — The agent fixes the findings in your code, without changing the visible layout. It saves rocketsim elements output before the fix so it can compare element frames afterwards.
  3. Validate — After rebuilding and returning to the same screen, the agent runs rocketsim accessibility-audit --screen latest --format full again and compares the element frames with the ones from before the fix.
  4. Repeat — The agent continues until the findings are gone, and reports any heuristic findings it deliberately declined with a short reason.

The RocketSim Agent Skill teaches your agent this workflow, including a dedicated reference for fixing small tap targets without changing layout. You can try it with a prompt like:

Use RocketSim to audit the current screen for accessibility issues, fix the findings without changing the layout, and run the audit again to validate.

  • RocketSim Pro for the Audit tab in the side window
  • A booted Simulator showing the screen you want to audit
  • The rocketsim command line tool for CLI audits, installed from Settings → CLI & Agent