Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AX ERROR when using Accessibility Inspector for iOS app.

Tags:

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?

like image 330
Apophenia Overload Avatar asked Jul 29 '11 20:07

Apophenia Overload


People also ask

How do I enable Accessibility Inspector in iOS simulator?

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.

How do you use an Accessibility Inspector?

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.

How do you use VoiceOver in simulator?

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.


2 Answers

https://github.com/freerangecode/FRCTableViewDataSources/commit/8d6fbfe8520a94275dd1e1e175ee445e4e0f2b01

Change made to fix issue, you might need to pull changes and update your library.

like image 140
RAZ Avatar answered Oct 04 '22 21:10

RAZ


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.

like image 20
Senseful Avatar answered Oct 04 '22 22:10

Senseful