Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
790 views
in Technique[技术] by (71.8m points)

ios - Xcode 7 beta 4 - Crashes on UI recording

While trying to do UI recording for my UI tests, the app crashed after 1 event that was not recorded. Looking into the crash report, I found this error: UNCAUGHT EXCEPTION (NSInternalInconsistencyException): ancestorFinder is not being processed by childNodeFinders

Anyone also getting this and maybe someone knows a fix for this?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

At the moment, this seems a bug related to the absence of accessibility identifier on the item used to generate the event. If your UI is created using the Interface Builder, Andy's answer is certainly relevant.

If, like me, your are creating your UI object programmatically, you can set a value to the accessibilityIdentifier property of your UI element (e.g. a UIButton).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...