UI Testing Failure - Failed to perform AX action for monitoring the event loop of XCUIApplicationProcess, error: Error -25204 performing AXAction 2042

UI tests in my application fail randomly with this issue (it's very similar to: https://forums.developer.apple.com/message/8476#8476 but apple won't let me post reply there for some reason)


UI Testing Failure - Failed to perform AX action for monitoring the event loop of <XCUIApplicationProcess: 0x7f90a8c04080 com.example.myapp (26285)>, error: Error -25204 performing AXAction 2042


This has become a real pain because this issue always happens on Continuous Integration (CI) server. Any ideas how to fix it?



Xcode 7.2 (7C68).

Replies

Facing the same issue. Did you ever find a solution, or at least the cause of it?

I'm now seeing this in the released version of XCode 7.3. Before installing 7.3 all was working fine.


Any solutions?

We're seeing the exact same failure on our CI running Xcode 7.3. Very, very annoying.

Same issue with no solution still... ever figure this out?

Also having the same issue. Occurs after launching the application and after accessibility loads, in the `Wait for app to idle` step.

Submitted bug report:


# 27226341

+1 Have UI tests that take 30+ minutes to run and this randomly pops up on CI from time to time.

I filled this bug for a long time but no one care. Here is the sample project to reproduce the bug. Just in case someone from apple interested


https://drive.google.com/file/d/0B7J8nMIupS79VnlBS1g4cVZJaWc/view?usp=sharing