Step 3: Set Up the Xcode Project
Set Up the Xcode Project for Your User & Application
- If you haven't yet opened the axe DevTools Mobile Analyzer project in Xcode, open it from folder of files you downloaded earlier. Double-click
axeDevToolsMobileAnalyzer.xcodeproj
to open the project in Xcode. - In Xcode's left file navigation panel, expand the project by selecting the chevron (1), then open the
Setup
file (2)
- Navigate to axe Account Settings to find or generate your API key.
- If you don't yet have an API key for axe DevTools Mobile, click ‘+ Add New API Key’. Select axe DevTools Mobile and give your API key a name. You can name this anything you'd like, such as ‘Mobile API Key’.
- Click the document icon to copy your API key.
- Add your API key in the
Setup
file, between the quotation marksstatic let apiKey = "YOUR API KEY HERE"
- Add your app’s bundle identifier in the
Setup
file, between the quotation marksstatic let bundleId = "YOUR BUNDLE ID HERE"
.
The easiest way to get the bundle identifier is to ask your development team.
If you are testing a production app from the U.S. App Store, you can search for your app's App Store listing from a web browser and use the URL to find your app's Bundle ID.
tip
What's a Bundle Identifier?
The bundle identifier is a unique identifier for your app. Each build of your app may have its own, including production, beta, develop, qa, etc. This will vary on each team so work with your developers if you're managing multiple environments of your app to ensure the correct one is being tested.
Don't have a Bundle Identifier?
No worries, use one of the preinstalled iOS apps to test the axe DevTools Mobile Analyzer functionality:
- Apple Maps:
com.apple.Maps
- Apple News:
com.apple.news
Next: Run a Scan (Step 4 of 4)