Step 3: Set Up the Xcode Project

Link to Step 3: Set Up the Xcode Project copied to clipboard
Free Trial

Set Up the Xcode Project for Your User & Application

  1. 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.
  2. In Xcode's left file navigation panel, expand the project by selecting the chevron (1), then open the Setup file (2)
    Screenshot of Xcode with the Setup file highlighted.
  3. Navigate to axe Account Settings to find or generate your API key.
  4. 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’.
    Screenshot of New API Key Settings dialog showing axe DevTools Mobile selected from the Product menu.
  5. Click the document icon to copy your API key.
    Screenshot of API key settings page with the copy button highlighted.
  6. Add your API key in the Setup file, between the quotation marks
    static let apiKey = "YOUR API KEY HERE"
  7. Add your app’s bundle identifier in the Setup file, between the quotation marks
    static 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)