XCUITest prints errors about calling _accessibilityChildren recursively

Originator:keithbsmiley
Number:rdar://33119187 Date Originated:04-Jul-2017 00:17
Status:Resolved Resolved:Xcode 9 beta 4
Product:Developer Tools Product Version:Xcode 9 beta 2
Classification:Other Bug Reproducible:Always
 
Summary:
When running XCUITest tests, if you look in Console on macOS, you will see a bunch of errors like this:

```
Someone is calling _accessibilityChildren recursively. That's just asking for trouble.
```

Steps to Reproduce:
1. Create a project with XCUITests
2. Add some code to search for a UI element
3. Open Console.app and look at the logs for the simulator

Expected Results:
There are no warnings from XCUITest

Actual Results:
XCUITest warns seemingly every time it searches for an element.

Version:
Xcode 9 beta 2

Notes:
Attached is a screenshot of the log

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!