XCUITests running incredibly slow with Xcode 15.3

Sometime recently our XCUITests started to hang after awhile and so I had filed this Feedback ticket.

With the release of Xcode 15.3 I re-ran the test in the project I had attached to that Feedback ticket (which taps a "Go!" button which pushes a new view controller and then verifies the value of a UILabel) and the tests are running crazy slow on a device now running iOS 17.4.

It has been half an hour and only 14 of 100 iterations have been run.

Anyone else experience severe performance degradation in their XCUITests with Xcode 15.3?

I rebooted the device again and uninstalled all previously installed test apps and now tests are running normally again.

Interesting- seems like your device got into an odd state, but glad to hear it is working again

I also ran in to this problem with a device running iOS 17.3 and Xcode 26.2.

After running the XCUITests multiple times one after another, at some point the app would become really slow running on the device with XCUITest stuck waiting for the app to idle. Restarting the device would then allow the app to launch normally when run from XCUITests.

I updated the device to iOS 18.7.8 and the problem no longer happens. Seems to be a bug in iOS 17.

XCUITests running incredibly slow with Xcode 15.3
 
 
Q