Skip to content

iOS Devices

Introduction

This module provides instructions on how to connect different iOS devices to the developer machine in macOS environment.

Prerequisites

Example 1: iPhone SE

In this example we will learn how to connect an iPhone SE to the developer computer.

iPhone SE

SpecificationDetail
NameiPhone de Agile
iOS Version17.6.1
Model NameiPhone SE
Capacity64 GB

Enabling Developer Mode

  1. On your iPhone, open the Settings app.

  2. Go to Privacy & Security.

  3. Scroll down and tap on Developer Mode.

  4. Turn on the Developer Mode switch and restart your iPhone.

    Developer mode

Connecting to macOS

  1. Connect your iPhone to your Mac using a Lightning to USB cable.

  2. If it's the first time connecting, you'll need to trust the computer on your iPhone. Tap Trust on the alert that appears on your device.

    Trust Computer

Verifying the Connection

You can verify the connection using the idevice_id -l command in the terminal. This command is part of the libimobiledevice library, which you can install via Homebrew:

sh
brew install libimobiledevice

After installation, run the command:

sh
idevice_id -l

If your device is connected and recognized, its UDID will be listed.

Verifying with Xcode

  1. Open Xcode on your Mac.
  2. Go to the Window menu and select Devices and Simulators.
  3. Your connected iPhone should appear in the list of devices. You can see its details and connection status.

xcode iPhone