How to debug accessibility identifiers in XCode

Use the Accessibility Inspector developer tool to debug an apps accessibility identifiers.

Oscar de la Hera Gomez
Written by Oscar de la Hera Gomez
First published on 11/09/2024 at 10:23
Last Updated on 11/09/2024 at 11:16
<p>Three flowers that represent Swift, Swift Testing and XCode side by side. Beneath them sits the text "Accessibility Identifiers".</p>

Use the Accessibility Inspector developer tool to debug an apps accessibility identifiers.

SubscribeDownload Open Source Project

The following tutorial shows how we found temporary files from our upcoming app Object Capture Pro. If you wish to be updated on the progress and release of this app, please subscribe using the link below.

Subscribe

BEFORE PROCEEDING MAKE SURE THAT YOU HAVE RAN OR OPENED THE APP YOU WISH TO INSPECT.

Step One: Open the Accessibility Inspector

<p>A screenshot showing how the Accessibility Inspector is found in the XCode menu under Open Developer Tools.</p>

In the top menu bar, select XCode > Open Developer Tool > Accessibility Inspector.

Step Two: Click the Target

<p>A screenshot showing the Accessibility Inspector next to the Object Capture Pro app. Highlighted on the inspector is the target button.</p>

In the Accessibility Inspector, click the button that has the target icon.

Step Three: Inspect

<p>A screenshot showing how if you inspect an app it will turn green and its details will appear in the inspector.</p>

Hover over or click the element you wish to inspect, which will be highlighted in green.

You will find the accessibility identifier under the advanced section.

How to use accessibility identifiers in Swift TestingHow to use nested accessibility identifiers in Swift Testing

Looking to learn more about SwiftUI, Swift, Swift Testing, Design and Technology?

Search our blog to learn more about Swift, SwiftUI, Swift Testing, design and technology.

Search our Blog

Any Questions?

We are actively looking for feedback on how to improve this resource. Please send us a note to inquiries@delasign.com with any thoughts or feedback you may have.
SubscribeContact UsVisit our BlogView our ServicesView our Work

Partner with us

We would love to get to know you and see how we can help your organization with its goals and needs.
Let's Talk

Stay Informed

Get occasional updates about our company, research, and product launches.
Subscribe