Debug an iPhone cabled to a Windows PC from Xcode on a Mac
By Taha Yasin KucukPublished 4 min read
Short answer: Xcode only sees an iPhone that is on its own Mac's cable or Wi‑Fi, so a phone plugged into a Windows PC is invisible to it. Run Nuticast USB Host on the PC. It finds the iPhone on the cable and shares it with the Mac that runs Xcode, where you add the phone with the USB via computer connector and the PC's address. Xcode then builds, installs and debugs on the phone over the PC's cable. The iPhone needs no Wi‑Fi. Windows is only the computer with the cable: Xcode always runs on a Mac.
The setup this is about
- A test iPhone plugged into a Windows PC that sits in a lab, an office or a cupboard, while the developer's Mac is somewhere else.
- A shared PC that already holds the team's test phones.
- A phone you keep on a PC for a reason of its own (a vendor tool, a test rig), while the app is built on a Mac.
In each case you want to press Run in Xcode on your Mac and have the app start on the phone that is cabled to the PC.
Why Xcode can't just use it
Since Xcode 15 and iOS 17, Xcode reaches an iPhone through Apple's CoreDevice services (RemotePairing, then a tunnel), not through plain USB. On a Mac those services come up on the cable by themselves. A Windows PC doesn't run Xcode and doesn't give your Mac any of that. Forwarding the raw USB device to the Mac is what USB-over-network tools try, and developers report the phone missing from Xcode or dropping.
Nuticast USB Host takes the other route. It talks to the phone on the PC the way Apple's own tools do, through the CoreDeviceProxy tunnel that Apple Devices provides, and forwards the network services Xcode needs to your Mac. No extra USB driver and no Personal Hotspot are involved.
What you need
- On the PC: 64-bit Windows 10 or later, and Apple Devices from the Microsoft Store.
- The iPhone: iOS 17.4 or later, unlocked, trusted by the PC, with Developer Mode on.
- On the Mac: Nuticast and Xcode. This Mac needs the license; the PC doesn't run Nuticast's Mac app.
- A network between the two. A mesh VPN such as Tailscale, ZeroTier or Netbird is best: it works across networks and only members of the VPN can reach the phone.
- The iPhone paired once with the Mac's Xcode, while it is next to that Mac (over Wi‑Fi on iOS 27 or later, or over a cable). After that it can live on the PC.
Set up the PC
- Install Apple Devices from the Microsoft Store.
- Plug in the iPhone, unlock it and tap Trust. Turn on Developer Mode under Settings → Privacy & Security if it isn't on.
- Download Nuticast USB Host and run the setup wizard. It checks that Apple Devices is installed, adds a Start menu shortcut and adds its own Windows Firewall rule for private networks.
- Start Nuticast USB Host from the Start menu. It opens a console window, runs its checks and shows the address to type on the Mac. If the PC has a mesh VPN (Tailscale, Netbird, ZeroTier), that address is the default.
If every check is ticked and the log shows the iPhone, the PC side is done.
Add the phone on the Mac
- Open Nuticast → Add Device and pick the iPhone. A phone you already saved works too.
- Choose the connector USB via computer, paste the PC's address and click Check, then Save.
- Start the bridge. The phone appears in Xcode's run destinations, and Run, breakpoints, LLDB and the console work as usual.
Nothing on the Mac is different from sharing a phone off another Mac. The full steps, with the error messages, are in the USB sharing guide.
Limits to know
- Windows is the cable side only. The computer with Xcode is always a Mac. A Windows PC can't run Xcode, so there is no Windows source. Linux isn't supported either.
- One iPhone at a time per host. Plug in the phone you want to use.
- The two computers have to reach each other. Over a mesh VPN is ideal. A local-network address works, but then anyone on that network can reach the iPhone's debugging port, and the host says so when it picks one.
- The phone needs the cable, not Wi‑Fi. If it is also on the Mac's own Wi‑Fi, Xcode reaches it directly and you don't need the bridge.
Common questions
Do I need to install a driver for the iPhone on Windows? No. Apple Devices from the Microsoft Store is enough. Nuticast USB Host uses Apple's CoreDeviceProxy tunnel, so it needs no network adapter driver and no Personal Hotspot.
Does the PC need a Nuticast license? No. Only the Mac that runs Xcode and starts the bridge needs one.
Can Xcode run on the Windows PC? No. Xcode exists only on macOS. The PC shares the cable, and your Mac runs Xcode.
Does the iPhone have to be paired with my Mac first? Yes, once, while it is next to the Mac. After that it can stay on the PC's cable.
Is the traffic sent through Nuticast's servers? No. There's no account and no relay. Traffic goes straight between the PC and your Mac over your own network or mesh VPN.
Can I share several iPhones from one PC? Not yet: a host shares one iPhone at a time.