"Failure fetching attributes for element"

Hello! We've been going deeper and deeper with XCUI and had success creating some good UI tests. We also have Xcode server up and running to run all our tests overnight. Unfortunately, periodically we get an error that looks something like the below message:


UI Testing Failure - Failure fetching attributes for element <XCAccessibilityElement: 0x600000a4a8f0> Device element: Error Domain=XCTestManagerErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202}


When running locally, we don't see this error. The error is inconsistent in the nightly tests as well, so it's been incredibly hard to track down. Does anyone have any experience with this error, or have any ideas on how it might be resolved?

I have the same issue on our continuous integration server using Xcode 8.3.2

I have the same issue. Did you find any solution?

restarting my iPhone bypassed the error but of course you have to find a way to do this without rebooting the device. It may be a useful clue though...

Hi Did you find any solution to this error? It's still happening to me in XCode 9

"Failure fetching attributes for element"
 
 
Q