43

I currently encountered this issue while running my UI Tests for iOS

Assertion Failure: UI Testing Failure - Failure getting snapshot Error Domain=XCTestManagerErrorDomain Code=9 "Error -25201 getting snapshot for element {pid=84523}" UserInfo={NSLocalizedDescription=Error -25201 getting snapshot for element {pid=84523}}

Currently using Xcode 7.3.1, Cocoapods 1.0.1.

I tried deleting DerivedData, Pods/, Podfile.lock and *.xcworkspace and running pod install afterwards. No luck. Still experiencing the error. First experienced in Xcode 7.3. Upgraded it and issue still persists.

Anybody who experienced the same thing and resolved the problem? Kindly share your solution. Thank you.

shim
  • 9,289
  • 12
  • 69
  • 108
Abs F.
  • 431
  • 4
  • 3
  • 1
    Have the same issue. It looks like this radar http://www.openradar.me/25623858 – alexchernyy Jun 29 '16 at 10:16
  • 1
    The thing is, it only happens on my macbook. I let my friend try to run the code on his macbook and it ran fine. So I was forced to reformat the machine. Still, the issue persists. – Abs F. Jul 01 '16 at 10:12
  • 1
    I let my colleague run the same code again, now he's encountering the same issue. Looks like it's not an isolated case anymore. Anyone here who encountered the same and resolved the problem? – Abs F. Jul 13 '16 at 02:27
  • 5
    This problem is still happening in Xcode 8.1 UI Testing Failure - Failure getting snapshot Error Domain=XCTestManagerErrorDomain Code=9 – Laser Hawk Nov 06 '16 at 06:38
  • Guys, if you use Appium, update it to the latest beta and your issue will be solved – Vitaly S. Nov 22 '16 at 16:56
  • Are you trying to access a cell in a tableview? – Frederik Mar 22 '17 at 11:48

1 Answers1

2

The link https://forums.developer.apple.com/message/129839#129839 claims that this has multiple causes, all being bugs that haven't been fixed yet. There are some possible solutions in that post. You need an Apple Developer account to see it.

mikep
  • 3,841
  • 8
  • 21