I'm testing an iPhone app with the simulator. Whenever I click on certain elements, I receive this error in console:
AX ERROR: Could not find my mock parent, most likely I am stale.
This error does not seem to cause any side-effects. I can use the app and examine the elements freely. Any idea what it may be caused by?
First, open it in the Xcode menu by navigating to Xcode ▸ Open Developer Tool ▸ Accessibility Inspector. The target chooser lets you pick which device you'd like to inspect. This could be your MacBook Pro, an iOS device or your simulator. Live previews of accessibility elements let you test right in the simulator.
Accessing the Accessibility InspectorChoose Accessibility in the Tools > Web Developer menu. Select the Accessibility tab in the Developer Tools toolbox. Right-click in the main browser window, and choose Inspect Accessibility Properties in the context menu.
While VoiceOver is not available directly in the Xcode simulator, it is possible to run VoiceOver from macOS to test your app. To do this, set keyboard focus on the simulator window then enable VoiceOver. From here you'll be able to use the Virtual Cursor to move between items on the screen.
https://github.com/freerangecode/FRCTableViewDataSources/commit/8d6fbfe8520a94275dd1e1e175ee445e4e0f2b01
Change made to fix issue, you might need to pull changes and update your library.
For me the problem was that the code path eventually called
[tableView beginUpdates]
[tableView endUpdates]
within the tableView:cellForRowAtIndexPath:
method.
Removing the call got rid of these AX Error log messages as well as a bunch of other UI glitches.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With