You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
After an XCUITest session on a simulator, AXe and idb return an empty tree for every newly launched app until the simulator reboots #161
Once an XCUITest-based UI test runner has driven a simulator (tested with one runner; not checked with plain xcodebuild test), axe describe-ui (and idb ui describe-all) return an empty AXApplication for every app process launched afterwards. A process that was already running keeps working. Only a simulator reboot fixes it. In the same state, baguette describe-ui still returns the app's content.
Repro (measured, all on one simulator)
Step
AXe labels
idb labels
baguette labels
reboot, clean install, launch, wait 20 s
27
19
23
same again
27
–
–
run one XCUITest-based UI test against the simulator
terminate + relaunch the app, wait 20 s
0
0
23
clean install + launch again
0
–
–
reboot, launch
27
19
23
The state does not wear off on its own: relaunching the app every 15 s for 208 s after the XCUITest run, AXe returned 0 labels every time, with no XCUITest runner process left on the simulator. Calling idb in that state does not bring the tree back either.
mav flows that open the app in this state fail with wait_timeout on their first wait: 4 of 5 runs of a minimal flow (open + wait: { id }). One run passed in 12.6 s, about 60 s after the XCUITest run, and I could not find what made it different.
Expected
mav notices the state (empty AX tree while the screenshot is not blank) and says so with a specific code and the fix (reboot), instead of a plain wait_timeout.
Optionally, it falls back to the baguette system tree for reads when AXe returns an empty AXApplication.
Note on the other tree drivers
idb 1.7.8 (companion and client, above mav's 1.6.4 floor) sees the same empty tree as AXe in this state: 0 labels after the XCUITest run, 20 on a freshly rebooted simulator.
baguette's tree survives, but it does not expose the AXUniqueId of every element. For example, a search field that AXe reports with its id does not appear in idb's or baguette's output. So a fallback would still miss id selectors.
Found while porting the end-to-end flows of a large UIKit + SwiftUI iOS app to mav flows.
Environment: mav 0.35.0 (darwin-arm64 release), AXe 2.0.4, baguette 0.2.12, idb 1.7.8 (companion) / fb-idb 1.7.7 (client), Xcode 26.4, iOS 26.4 simulator (23E244), iPhone 17 Pro, macOS 26.6.2, Apple Silicon. Debug simulator build of the app.
Activity