Getting a UDID

UDID is an acronym for Unique Device Identifier. It is a unique identifier that is calculated from different hardware values. The UDID is a feature of Apple devices running iOS, tvOS, watchOS, and macOS.

For the purposes of this example, it is used to determine the destination device to run tests.

If you need to setup Xcode before this step, see Setup Apple Developer account on Xcode.

Getting a simulator UDID

  1. Open Xcode.

  2. Go to the Window menu and select the Devices and Simulators option.

  3. Select the Simulators tab in the upper left corner.

  4. Pick the simulator you want to run the test on from the list of all available simulators on the left.

  5. Look for the Identifier field on the detail screen. Right click its value and select Copy.

Getting a physical device UDID

These steps apply for both iPhone and iPad devices.

There are several ways to get your device UDID. Here’s one of the easiest.

  1. Get your device and open the Camera app.

  2. On your Mac go to https://udid.tech/ and scan the QR on the page. And follow the link.

3. You’ll be taken to a web page. Tap on Get your UDID now.

4. Tap on Got it!

5. Tap on Allow to permit the download.

6. Close the confirmation popup.

7. Go to your device Settings and tap on Profile Downloaded.

8. Select Install and then press Install again. If you have a passcode it’s likely you will get a prompt to confirm your identity before installing the profile.

8. You’ll be taken to a web page with all your device information. Look for the UDID field and tap on it to copy its value.