You have now noted that you were trying to use Accessibility Inspector to explore UI elements in the simulator window. Let me note now that I was using it to explore UI elements in macOS application windows. So perhaps the problem lies with the simulator.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: