Failure requesting automation session: Timed out waiting for target to check in

For my iOS app XCUITest, I'm trying to run parallel distributed testing tests and some of the cases in the test suite fails with the below reason:

"Failure requesting automation session for com.app:10909: Timed out waiting for target to check in."


This error comes up when the tests are trying to execute XCUIApplication().launch


If I execute in random order or without parallelization all tests are passing as there are no dependency between tests.


Has anyone faced this issue and fixed it?

Replies

I am facing the same issue. Seems to occur the most on the Max device for me.

Having the same issue, but everything passes locally, fails on the server.