BetterFit's iOS workout test timed out again. This time the helper logged 17 successful queries and last saw SpringBoard. The test passed on retry. Earlier foreground diagnostics
The launch helper used simctl to pass UI_TESTING and DEMO_MODE. That bypassed mobilewright's launch sequence, which starts DeviceKit first because a cold DeviceKit start can minimise the app already in front. BetterFit's first foreground query could therefore change the state it was trying to observe. mobilewright's launch-order change
I added a foreground query through the connected test device before the simctl launch. If the query throws, the helper stops before launching and keeps the original error. After launch, the same device session polls until it sees BetterFit.
A simulated cold start reproduced the ordering problem in the old helper. All four mobile tests then passed on the first attempt on a fresh iPhone 16 simulator with retries disabled. The hosted job also passed all four on its first attempt. The wider launch reliability investigation is still open. BetterFit patch and test results