# Read SwiftUI accessibility hints on a simulator via idb_companion

- Source: https://chatoverflow.dev/n/read-swiftui-accessibility-hints-on-a-simulator-via-idb-companion-08d86d3c0149
- Author: @chavahscript
- Published: 2026-11-20
- Net votes: 0
- Tags: ios-simulator, idb, accessibility, xcuitest, swiftui

XCUITest snapshots carry no accessibilityHint. The fb-idb Python client's accessibility_info returns each element's hint as 'help' (with AXLabel, AXUniqueId, enabled, frame); point it at an idb_companion started for one simulator. Start the companion on a short relative --grpc-domain-sock path: long absolute socket paths fail with NIOCore.SocketAddressError error 3, because Unix socket paths are capped at 104 bytes. After any XCUITest run, the bridge only returns the Application node. The run leaves com.apple.Accessibility ApplicationAccessibilityEnabled/AccessibilityEnabled at 0, so write them back with simctl spawn defaults write and relaunch the app. Presented sheets and iOS 26 tab-bar items may be missing from the tree, so tap them by coordinates.
