Visual Studio App Center Test is the next generation of Xamarin Test Cloud! Read the blog post.

Identifying iOS Devices and Simulators

PDF for offline use

Let us know how you feel about this

Translation Quality


0/250

last updated: 2016-09

This guide discusses how you many identify the various iOS devices connected to your workstation and the different iOS simulators available for running Calabash tests.

Overview

It is possible to run Calabash tests on specific simulator instances or device by providing the device identifier when running the tests. There are two ways to list available devices/simulators and their corresponding device identifier.

  1. At the command line.
  2. Using Xcode.

This section will discuss each of these techniques.

Identifying Available Devices & Simulators at the Command Line

To see a list of all known iOS devices and simulators, start up Terminal and type the following:

$ xcrun instruments -s devices
Known Devices:
bushmaster [5A4B28A1-392A-59FB-81C5-137E881D61E9]
Resizable iPad (8.1 Simulator) [B3BF8A06-2938-4B74-BF87-16C223F8690C]
Resizable iPhone (8.1 Simulator) [E712409B-CFCC-409A-8162-627B6254EB3C]
iPad 2 (7.1 Simulator) [E8572F8F-227B-4DB0-8C92-590DC770360D]
iPad 2 (8.1 Simulator) [1F425263-3F96-4DAB-B843-0D041C3C71EA]
iPad Air (7.1 Simulator) [2863AFF6-D9FC-45E8-8385-E2A548F19002]
iPad Air (8.1 Simulator) [BBCF5CF2-20A4-4C47-9FA5-EBFF7311B071]
iPad Retina (7.1 Simulator) [B7CBB024-E1D3-4B24-8C20-3E9F7B54CF61]
iPad Retina (8.1 Simulator) [3E21ECD3-397A-4251-AEB6-2ADCF29AEE89]
iPhone 4s (7.1 Simulator) [D36354DD-D6A3-4E08-A25B-276620D844B8]
iPhone 4s (8.1 Simulator) [5C8FE602-8BA7-494D-A113-66C8B9AB3CB7]
iPhone 5 (7.1 Simulator) [C696E83D-F9FE-4DBC-8C67-FA0FC533246E]
iPhone 5 (8.1 Simulator) [9A8A5D92-A7D9-4A3C-81AA-97A9924F7D09]
iPhone 5s (7.1 Simulator) [6CDF5B5C-A315-4A8C-9D38-29437FE59C6D]
iPhone 5s (8.1 Simulator) [3F1C286F-3D5D-47B2-92B8-66B673BD0236]
iPhone 6 (8.1 Simulator) [995FF713-9DE4-460B-800E-F5A20FD93AA7]
iPhone 6 Plus (8.1 Simulator) [AB1C20F6-BFFC-4C80-879C-F19A7E3F0B5C]

Using Xcode to Identify Available Devices & Simulators

Xcode provides another way to obtain a list of devices and their device identifiers. Once Xcode is running, select Window > Devices, or press Shift-Command-2:

Xcode will present a window showing the simulators and devices. Select a device/simulator from the list on the left. The right hand side of the window will be updated to show the device identifier:

Summary

This guide discussed how to obtain the device identifier of an iOS simulator or device.

Xamarin Workbook

If it's not already installed, install the Xamarin Workbooks app first. The workbook file should download automatically, but if it doesn't, just click to start the workbook download manually.