Skip to content

By Taha Yasin Kucuk · September 21, 2026 · Updated October 7, 2026

Xcode wireless debugging not working? A step-by-step checklist

When Xcode wireless debugging fails, it usually fails silently: the iPhone is missing from the run destination menu, shows as "offline," or hangs on "Connecting." The cause is almost always one of the checks below. Go through them in order — the early ones are the most common.

1. Pair the iPhone with Xcode first

Wireless debugging only works for a device Xcode has already paired with. How you pair depends on the iOS version:

  • iOS 27 or later, Xcode 27: no cable needed. Put the iPhone on the same Wi‑Fi as the Mac, open Device Hub in Xcode, click + → Pair Nearby Device…, and follow the prompts on both screens.
  • Older iOS: plug the iPhone in and tap Trust on the phone.

Either way, wait for Xcode to finish preparing the device (the first time can take several minutes while it copies debug symbols). In recent Xcode versions the device is then available over the network automatically; in older ones, open Window → Devices and Simulators and tick Connect via network.

2. Turn on Developer Mode

On iOS 16 and later, the phone won't run development builds until Developer Mode is on: Settings → Privacy & Security → Developer Mode. The phone restarts and asks you to confirm. If the Developer Mode switch isn't there, pair the phone with Xcode once (step 1) and it will appear.

3. Put both devices on the same network — really the same

Xcode finds the phone with Bonjour (mDNS), which only works inside one local network. Being on the "same Wi‑Fi name" isn't always enough:

  • Guest networks and client isolation block devices from seeing each other. Common on office, hotel, and café Wi‑Fi.
  • Mesh and dual-band routers sometimes put 2.4 GHz and 5 GHz clients, or different access points, on separate segments.
  • Corporate networks often split devices into VLANs or filter multicast.

A quick test: can your Mac see other Bonjour devices on that network, such as a printer or an Apple TV? If not, the network is the problem, not Xcode.

4. Check VPNs and firewalls on the Mac

A full-tunnel VPN on the Mac can route local traffic away from the Wi‑Fi, and an aggressive firewall or security tool can block the incoming connections the debugger uses. Disconnect the VPN or pause the tool, then try again. (Mesh VPNs like Tailscale normally leave local traffic alone, but "exit node" or "route all traffic" modes don't.)

5. Check what the system actually sees

In Terminal:

xcrun devicectl list devices

If the phone is listed as available, the problem is between Xcode and the device session — restart Xcode. If it's listed but unavailable, the Mac can't reach it over the network. If it's not listed at all, the pairing is gone; go back to step 1.

6. Reset the pairing

When nothing else helps, start clean:

  1. In Xcode, Window → Devices and Simulators, right-click the phone, and choose Unpair Device.
  2. On the iPhone, Settings → Developer → Clear Trusted Computers.
  3. Restart both the Mac and the iPhone.
  4. Pair again (step 1).

7. Is the iPhone on a different network on purpose?

If the phone is at home, with a tester, or in another building, none of the fixes above will help. Apple's wireless debugging isn't designed to work across networks; the device will never show up.

That case has its own fixes. Your options are covered in how to debug an iPhone in Xcode when it's on a different network. The short version: put the Mac and iPhone on a mesh VPN such as Tailscale, and use Nuticast to make the phone visible to Xcode again. The iPhone still needs to be on Wi‑Fi; cellular doesn't work.

If you're seeing this exact error

If you searched for the wording Xcode actually showed you, here's which step above it points to:

  • Please check the device connection and ensure that a passcode is set on the device. when toggling Connect via Network — the pairing itself is broken. Go back to step 1 and re-pair. (source thread)
  • iPhone is disconnected / Xcode will continue when iPhone is connected and unlocked in Devices and Simulators — Xcode can't reach the phone over the network right now. Check step 3 (same network, really) and step 5 (xcrun devicectl list devices). (source thread)
  • Failed to launch: 'Could not attach to pid : “17649”' -- Connection shut down by remote side while waiting for reply to initial handshake packet in the middle of a session — the iPhone just left the network Xcode was using. That's step 7, the different-Wi‑Fi case. (source thread)

Quick reference

SymptomMost likely causeCheck
Phone never appears in XcodeNever paired, or pairing lostSteps 1 and 6
"Developer Mode disabled"Developer Mode offStep 2
Works at home, not at the officeClient isolation or VLANsStep 3
Stopped working after installing a VPNFull-tunnel VPN or firewallStep 4
Phone is on another Wi‑FiBonjour doesn't cross networksStep 7