XCUITests fail on Bitrise, but not locally

Our test suite passes on our developer machines, but certain branches on Bitrise will get stuck on this error: failed: caught “NSInternalInconsistencyException”, “Activity cannot be used after its scope has completed.” Every single UI test fails with an identical error. Again, we’re not able to reproduce this locally, and Google searches have yielded unrelated results about turning off the main thread checker (it’s been off this whole time, but just to be on the safe side I turned it back on & fixed outstanding issues). What might be different about the Bitrise build environment that might cause this kind of failure?

Hi @davidgoli,

Can you please copy paste the related build’s bitrise.io URL? We’ll look into it ASAP! :slight_smile: