Tests on Bitrise (some consistently, some inconsistently) failing with "AX action" errors
<p>I have a number of tests that I've written for an pretty substantial app (the app's been around for a few years longer than I have at this company) in the XCUITest framework. All of the tests pass consistently on my laptop and also the laptops of the other engineers.</p>
<p>When running tests on Bitrise, the first UI test fails every time on the setup phase with the following message:</p>
<blockquote>
<p>testFixtureAttachment, UI Testing Failure - Failed to perform AX action for monitoring the animations of (app), error: Error -25204 performing AXAction 2043</p>
</blockquote>
<p>Other tests usually pass but sometimes fail with errors such as:</p>
<blockquote>
<p>UI Testing Failure - Failed to perform AX action for monitoring the event loop of (app), error: Error -25204 performing AXAction 2042</p>
<p>UI Testing Failure - Failed to scroll to visible (by AX action) TextField 0x7fe800f9fa20: traits: ... error: Error -25204 performing AXAction 2003</p>
</blockquote>
<p>How can I resolve this so that, at a minimum, I don't have my first test always failing on setup?</p>