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-auditto automate audits, fixes, and validation, for example in an agent loop.
Running an audit in the side window
Section titled “Running an audit in the side window”- Open the Simulator with your app on the screen you want to check
- In RocketSim’s side window, open the Accessibility tab
- Select the Audit tab
- 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
Section titled “The score”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:
| Score | Band |
|---|---|
| 90–100 | Great |
| 70–89 | Good |
| 0–69 | Needs work |
A screen with any error-level finding can’t reach the Great band.
Findings and highlights
Section titled “Findings and highlights”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.
Copy a prompt for your agent
Section titled “Copy a prompt for your agent”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.
What the audit checks
Section titled “What the audit checks”The audit combines deterministic rules, which are reliable, with heuristic rules that flag likely problems for you to review.
| Rule | What it flags |
|---|---|
missing_label | Interactive elements without an accessibility label |
image_without_label | Images that VoiceOver reads without a description |
label_is_asset_name, non_descriptive_label | Labels that look like asset names, filenames, or identifiers |
label_style_punctuation | Labels that end with sentence punctuation or contain a sentence break |
label_style_capitalization | Labels that start in lowercase or are written in ALL CAPS |
label_style_too_long | Labels with more than 6 words or 50 characters |
label_style_repetitive | Labels that repeat a word, or repeat the label of their container or neighbor |
image_possibly_decorative | Small icons next to matching text, and full-screen background images, that VoiceOver may not need to read |
redundant_role_in_label | Labels that repeat the role, such as “Settings button” |
duplicate_labels | Different elements that VoiceOver announces identically |
adjustable_without_value | Sliders and steppers that don’t expose a value |
hit_region_small | Tap targets below 44×44 points (an error below 28×28 points) |
overlapping_targets | Tap targets that overlap each other |
offscreen_content_not_scrollable | Content that continues offscreen without being reachable through scrolling |
parent_child_conflict | Controls that a combined row hides from VoiceOver |
fragmented_group | Content that should be one VoiceOver element but is split into several |
no_heading_on_screen, heading_trait_missing | Screens without headings, or section titles without the heading trait |
selected_state_missing | Tab or segmented controls that don’t expose which item is selected |
contrast_low | Text 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_missingskips text inside a combined element, values with a unit such as250 msor601 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_labelmentions a nested readable label when one exists, andduplicate_labelsshows 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.
What the audit doesn’t cover
Section titled “What the audit doesn’t cover”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:
| Entry | Meaning |
|---|---|
accessibility_hint | Hints can’t be read from the accessibility tree. |
color_only_information | Information conveyed only by color can’t be detected. |
default_size_text_clipping | Text clipped at the default text size can’t be detected. |
contrast_unverifiable | Text on a photo, gradient, blur, or system bar has no reliable color reading. Check the contrast manually. |
native_control_skipped | A system-drawn control, such as a toggle, stepper, or segmented control segment, was exempt from hit_region_small. |
system_chrome_skipped | A navigation or bottom bar button was exempt from hit_region_small because the system sizes it. |
overlap_scroll_dependent | Two controls overlap only at the current scroll position. Scroll and audit again, or verify manually. |
unsettled_screen | The 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.
Modals
Section titled “Modals”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.
Automating audits with the CLI
Section titled “Automating audits with the CLI”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.
rocketsim accessibility-audit \ [--udid <udid>] \ [--screen <hash>|latest] \ [--rules <id,id,...>] \ [--exclude-rules <id,...>] \ [--severity error|warning] \ [--format compact|full] \ [--no-contrast]| Option | Description |
|---|---|
--udid <udid> | Audit a specific booted Simulator instead of the focused one. |
--screen <hash>|latest | Guard the audit against a changed screen. Pass a screen hash from rocketsim screen, or latest to use the current stored screen. |
--rules, --exclude-rules | Run or skip specific rules by ID. An unknown ID returns an invalid_argument error that lists the valid IDs. |
--severity error|warning | Only return findings of the given severity. |
--format compact|full | compact (default) groups repeated findings per rule. full returns one finding per occurrence and adds label_review. |
--no-contrast | Skip the heuristic contrast checks. |
The response uses the rs/1 protocol and includes:
- A
summarywith thescore, number oferrors,warnings, andheuristicfindings, andelements_audited findingsgrouped by rule with aseverity, whether the rule isdeterministicorheuristic, the affected element ids and frames, amessage, and a suggestedfixnot_coveredwith 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, wheresiblingsare the other labels under the same parent (at most 8).--rules,--exclude-rules, and--severitydon’t affect it, andcompactomits 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.
Audit, fix, and validate with an agent
Section titled “Audit, fix, and validate with an agent”The CLI turns accessibility work into a loop your AI agent can run on its own:
- Audit — The agent runs
rocketsim accessibility-auditon the screen under test. - Fix — The agent fixes the findings in your code, without changing the visible layout. It saves
rocketsim elementsoutput before the fix so it can compare element frames afterwards. - Validate — After rebuilding and returning to the same screen, the agent runs
rocketsim accessibility-audit --screen latest --format fullagain and compares the element frames with the ones from before the fix. - 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.
Requirements
Section titled “Requirements”- RocketSim Pro for the Audit tab in the side window
- A booted Simulator showing the screen you want to audit
- The
rocketsimcommand line tool for CLI audits, installed from Settings → CLI & Agent