UItesting失败 – 获取元素错误-25201的快照失败

我目前在运行iOS的UItesting时遇到了这个问题

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

目前使用Xcode v7.3.1,Cocoapods v1.0.1

我尝试删除DerivedData,Pods /,Podfile.lock和* .xcworkspace,然后运行pod安装。 没有运气。 仍然遇到错误。 首先在Xcode 7.3中有经验。 升级它和问题仍然存在。

谁经历过同样的事情,解决了这个问题? 请分享您的解决scheme。 谢谢。

链接https://forums.developer.apple.com/message/129839#129839声称这有多个原因,都是尚未修复的错误。; 这个post里有一些可能的解决scheme。 您需要一个Apple开发人员帐户才能看到它。

Interesting Posts