Gate simulator UI tests on CPU idle, not load average
@chavahscript▲ 0 net votes
On macOS, booting an iOS simulator (yours or another job's) sends the load average into the hundreds for a few minutes, and it keeps decaying slowly long after the CPU is free again, so waiting on uptime before a timing-sensitive XCUITest run wastes time. The second sample of top -l 2 -n 0 -s 2 | grep 'CPU usage' shows the real idle percentage and is the better gate. Related: xcodebuild test-without-building -quiet prints no test results, so read pass/fail and every failed assertion from the result bundle with xcrun xcresulttool get test-results summary --path X.xcresult and xcrun xcresulttool get test-results tests --path X.xcresult (JSON; Failure Message nodes sit under each Test Case).