Fix “iPhone is not available. Please reconnect the device” in Xcode

Xcode lost touch with your iPhone, or never had it. The eight usual causes, from a locked screen to a VPN, and how to find the real one in Device Hub.

By Sigsten Gustavii· · 9 min read

Build your own parking spot saver with Borel

Build this app

You press Run and Xcode answers: "iPhone is not available. Please reconnect the device." The phone is right there, plugged in. Or a run that worked a minute ago ends with Xcode "waiting to reconnect" to it.

The words are generic on purpose: Xcode knows it cannot reach the phone, not why. This guide shows where Xcode keeps the real reason, then goes through the eight causes behind nearly every report, using Apple's support articles, its Device Hub documentation and what its engineers say on the Developer Forums.

What the message means

Xcode keeps a list of devices paired with your Mac. When you run an app, it needs a live connection to the one you chose, over the cable or over Wi-Fi. "Not available" means that connection is missing: the phone is locked, untrusted, unplugged, on another network, or refusing for a reason Xcode reports elsewhere.

The parts of the message, and what each one tells you
The wordsWhat they mean
iPhone is not availableXcode has no working connection to the device you chose
Please reconnect the deviceXcode's guess at a fix; often right, sometimes not enough
Waiting to reconnect to iPhoneThe connection dropped during a run, and Xcode is waiting for it
Previous preparation error: …An earlier attempt failed, and the words after it say why

Step 1: find the real reason in Device Hub

Before you change anything, ask Xcode what it knows. Choose Manage Devices from the run destination menu to open Device Hub, the window Apple's current documentation describes for pairing devices, and select your iPhone in the sidebar. Apple's page says that any issues with a device appear in the canvas on the right.

In older versions of Xcode the same window is Window, Devices and Simulators. One person on Apple's forums in 2020 found the cause there that the error dialog never showed: "To run on this device, please update to a version of Xcode that supports" the phone's iOS version. Whatever Device Hub says, match it to a cause below.

The eight usual causes, and their fixes

1. The phone is locked

Unlock the iPhone and keep it unlocked while you run; the steps Apple's engineers give for connecting a phone to Xcode begin with unlocking it. This is the simplest cause and the easiest to miss when the phone's screen turns off by itself.

2. The Mac did not allow the iPhone as an accessory

Apple's support article on a computer that doesn't recognize your iPhone starts with this step on a Mac: when "Allow accessory to connect?" appears, click Allow. If the Mac is not allowed to connect to the iPhone, Xcode cannot reach it either.

3. The iPhone does not trust this Mac

When "Trust This Computer?" appears on the iPhone, tap Trust and enter your passcode. If you tapped Don't Trust, or the alert never appears, Apple's Trust This Computer article gives the steps in order: update the computer, disconnect and reconnect, restart the computer, restart the iPhone, and then reset the iPhone's location and privacy settings under Settings, General, Transfer or Reset iPhone, Reset.

Apple's Device Hub page adds one shortcut: if you dismissed the trust dialog by accident, or the device does not appear after you tap Trust, restart the device.

4. The cable, the port or a hub

Apple's DTS engineer, answering this kind of report in July 2024, put it at the top of his list: verify every link in the chain. Plug the iPhone straight into the Mac, without a hub or dock. Use a cable in good condition, and test with one from Apple. Apple's support article adds that the cable must support data as well as charging, that you should try another port, and that if the phone does not chime or vibrate when connected, you should check its port for debris. The engineer has seen enough pocket lint in a port to stop a connection.

5. Developer Mode is off

If Device Hub or the message says "Developer Mode disabled", the iPhone will not take part. Turn it on under Settings, Privacy & Security, Developer Mode, and let the phone restart. The steps and the reasons are in Developer Mode on iPhone.

6. Your Xcode is older than the iPhone's iOS

After an iOS update, the phone can outrun Xcode, and "not available" is one of the ways Xcode says so. Check the phone's iOS against Apple's SDK and system requirements table, whose Device Support column lists what each Xcode can install and debug on. Then update Xcode. The full story is in could not locate device support files.

7. A VPN or security software on the Mac

Apple's technote TN3158 explains that Xcode uses a network interface to talk to a device even over a cable, and that VPN apps and security configurations that filter packets can block it. Both the DTS engineer and Apple's support article name VPN and security software as something to check. Turn it off, reconnect the phone and run again.

8. A wireless pairing that lapsed

If you run over Wi-Fi, Apple's Device Hub page lists what that needs: the iPhone on iOS 27 or later for wireless pairing, on the same Wi-Fi network as the Mac, with IPv6 enabled for running apps. It also says that after you upgrade the device's operating system, you need to pair it again. A phone on another network, or one that was updated, shows as not available until you fix that. The cable is the reliable way back.

If none of that works: pair from scratch

  1. In Device Hub, Control-click the iPhone and choose Unpair, as Apple's documentation describes.
  2. Restart the iPhone and the Mac.
  3. Plug the iPhone in, unlock it, click Allow on the Mac and tap Trust on the phone.
  4. In Device Hub, select the phone and click Pair if the button appears. Turn on Developer Mode if asked.
  5. Run the app again.

People on the forums also report clearing the phone's list of trusted computers under Settings, Developer, which appears once Developer Mode is on, and then trusting the Mac again. Apple's engineer suggests one more test when all else fails: try a cleanly set-up Mac, to rule out software on yours, and if the problem stays, report it to Apple with diagnostic logs from both Mac and iPhone.

Is it this message, or a neighbour?

Connection messages in Xcode, checked 20 November 2026
What Xcode saysWhat it usually meansWhere the fix is
iPhone is not available. Please reconnect the deviceNo working connectionThis page
iPhone is busy: PreparingConnected, and still setting the phone upWhy it waits
The developer disk image could not be mountedConnected, but developer services did not startThe disk image fixes
Unable to InstallConnected, and the phone refused the appRead the reason line

Where Borel fits

Some of what Xcode needs here, Trust, a working cable and Developer Mode, any tool that installs your own app needs too, because the iPhone asks for them. What can change is how plainly you are told which one is missing.

Borel builds the app from your description, in Swift with SwiftUI, with Xcode on its own Mac, and you try it in an iPhone simulator in your browser, which needs no cable at all.

To put it on your own iPhone, Borel Companion, a free download for a Windows 10 or 11 PC or a Mac, signs the app with your Apple ID and installs it. Installing with Companion comes with a paid plan, Pro, from $25 a month.

  • One sentence per cause. Instead of "not available", Companion says which link is missing: "Your iPhone is waiting for you to tap Trust, so unlock it, tap Trust and enter your passcode.", "Your iPhone forgot this computer, so plug it in, unlock it and tap Trust.", or "Your iPhone was disconnected, so plug it back in and try again."
  • It repairs a forgotten pairing. When a phone no longer accepts this computer, after a reset or removed trust, Companion drops the old pairing and asks for Trust again.
  • A dropped copy gets a second try. If the connection drops while the app is copying, Companion tries once more, and a copy over the cable that drops can finish over the Wi-Fi.
  • No Apple software on Windows. On a PC, Windows Update adds the iPhone's driver, and Companion talks to the phone itself; if Windows is still setting the phone up, Companion says so.

The cable is needed once, for Trust and Developer Mode; after that, new versions go over Wi-Fi while the iPhone is on the same Wi-Fi as your computer. A free Apple ID works and keeps 3 of your apps at a time, and Companion signs each one again every 7 days while it runs. For ideas, see personal apps.

A message that describes an app, with no cable to debug
Make an iPhone app just for me to remember where I parked: one button saves the spot on a map with the time, a note for the level or the row, and a timer for when the parking runs out. Keep it on the phone.

The bottom line

"iPhone is not available. Please reconnect the device" means Xcode has no working connection to the phone. Open Manage Devices and read what Device Hub says about it. Then unlock the phone, click Allow on the Mac, tap Trust on the iPhone, and use a direct cable that carries data. Turn on Developer Mode, update Xcode if the iPhone is newer, and take any VPN out of the way. If all that fails, unpair, restart both devices and pair again.

For the whole route from a project to your Home Screen, see how to run your Xcode app on your own iPhone.

Questions people ask

What does "iPhone is not available. Please reconnect the device" mean?

Xcode has no working connection to the iPhone you chose. The phone may be locked, untrusted, on a bad cable, on another network, or need a newer Xcode.

How do I see why my iPhone is not available in Xcode?

Choose Manage Devices from the run destination menu and select the phone. Apple's documentation says Device Hub shows a device's issues in the canvas on the right.

My iPhone is plugged in. Why does Xcode not see it?

Check that it is unlocked, that you clicked Allow on the Mac and tapped Trust on the phone, and that the cable carries data. Apple also suggests another port and checking the port for debris.

Can a VPN stop Xcode from seeing my iPhone?

Yes. Apple's technote TN3158 says VPN apps and packet filtering can block the network interface Xcode uses for a device, even over a cable.

Why did my iPhone become unavailable after an iOS update?

The new iOS may need a newer Xcode, and Apple's documentation says a wirelessly paired device must be paired again after its operating system is upgraded.

Do I lose anything by resetting Location & Privacy?

The iPhone forgets every computer it trusted and resets its location and privacy settings. Apple lists it near the end of its steps, after restarts.

I think the cable is guilty more often than anyone likes to admit, so I would start there.

– Sigsten

Build your own parking spot saver

Your idea is already written. Press the button, read it, change anything, and Borel builds it, free to start.

An app just for me to remember where I parked: one button saves the spot on a map with the time, a note for the level or row, and a timer for when parking runs out.
Build this app

Keep reading