First App.
Your learning space A little progress, every day
CHAPTER 07Lesson 23 of 36

Connect and trust your iPhone

Connect your own phone so Xcode can recognise it.

On your iPhone5 min read & do
By the end of this lesson

Pair your iPhone with the Mac before installing the app.

Xcode may take extra time to prepare device support.

Let’s do this

  1. 1
    On your iPhone

    Use a data-capable cable

    Connect the iPhone to the Mac. Unlock the phone and keep it nearby. A cable that only supplies power may charge the phone without making it available to Xcode.

  2. 2
    On your iPhone

    Trust the Mac you are using

    If the phone asks Trust This Computer, confirm only for your own trusted Mac and enter the phone’s passcode on the phone. If Finder on the Mac asks to trust the phone, confirm there too.

  3. 3
    In Xcode

    Find the phone in Xcode

    Open Xcode’s device-management window. Current versions may call it Device Hub; older versions use Devices and Simulators. Your iPhone should appear by name. Let any preparation or support download finish.

  4. 4
    On your iPhone

    Check version compatibility

    If Xcode says the iPhone’s iOS is unsupported, compare the phone’s iOS version with the installed Xcode’s device support. Update to a compatible released version where your Mac supports it, then reconnect.

Signing setup sheet with a Team selector, Bundle Identifier field and Set Up button.View larger
Apple’s example: set up signing to run on a physical device. Use your own project’s details.Screenshot source (opens a new tab)

A message for Codex

Help me connect my own iPhone to Xcode for testing my first iPhone app. Ask what Xcode shows for the device and compare its iOS version with my installed Xcode support. Explain the next action on either the phone or Mac. Do not ask me to paste a passcode, change account credentials or erase the phone.

What you should see

Xcode lists your iPhone by name and shows no unfinished pairing or device-support task.

If you get stuck

Go at your own pace. There is no test to pass.

Checked 7 September 2026. Screens can change; the official guides below have the latest steps.

Run on a simulator or deviceXcode system requirements