Connect and trust your iPhone
Connect your own phone so Xcode can recognise it.
Pair your iPhone with the Mac before installing the app.
Xcode may take extra time to prepare device support.
Let’s do this
- 1On 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.
- 2On 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.
- 3In 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.
- 4On 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.
View largerA 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
Checked 7 September 2026. Screens can change; the official guides below have the latest steps.
Run on a simulator or deviceXcode system requirements