How an iPhone on another network shows up in Xcode
Nuticast is a Mac app that makes an iPhone on another Wi‑Fi, or plugged into another computer, appear in Xcode as a normal run destination. It replays the phone’s Bonjour record on your Mac and relays Xcode’s traffic over your own mesh VPN (the phone stays on Wi‑Fi; cellular does not work) or over the other computer’s cable.
Nuticast reaches an iPhone that isn’t next to your Mac in one of two ways:
- Remote Wi‑Fi: the iPhone is on another Wi‑Fi and reaches the Mac over a mesh VPN. Most of this page.
- USB via computer: the iPhone is plugged into another computer running Nuticast (or Nuticast USB Host on Windows), and that computer shares its cable. See USB via computer below, or the full USB sharing guide.
Why a VPN alone is not enough
Xcode finds a wireless iPhone with Bonjour (mDNS), and Bonjour only travels inside one network. The moment the phone joins a different Wi‑Fi it drops out of Xcode’s run destination menu, with no error.
A mesh VPN fixes half of that. It gives the phone an address your Mac can reach from the other network, but Xcode still won’t list a device it can’t find over Bonjour, even if it can ping it. A plain VPN to the office behaves the same way: it makes the network reachable and carries no discovery. The long version is in why Xcode wireless debugging breaks when your iPhone leaves Wi‑Fi.
- Your Mac, on its Wi‑FiXcodeLooks for wireless iPhones with Bonjour, and Bonjour only hears what is on the same network.
- The iPhone, on another Wi‑FiiPhone-MikeAnnounces itself with Bonjour to the network it is on. Xcode never hears it.
Nuticast replays the record and relays the traffic
Two jobs, kept apart. Discovery: Nuticast replays the phone’s Bonjour record on your Mac, so Xcode lists the phone. Reachability: it relays Xcode’s traffic over the mesh VPN you already run.
- The iPhone, next to your Mac, onceAdd DeviceYou pick the phone while it is still local. Nuticast records its Bonjour identity and matches it to the same phone on your mesh VPN.
- Your MacNuticastWhen you start the bridge with the phone away, it replays the phone’s Bonjour record on this Mac.
- XcodeRun destinationHears the record on its own Mac and lists the iPhone.
You show Nuticast the phone once, while it is next to the Mac (see Add the device). After that, starting the bridge is a switch.
- iPhoneiPhone-MikeOn a different Wi‑Fi from your Mac. Not cellular.
- Your mesh VPNTailscaleOr ZeroTier, Netbird or a manual IP. The one you already run.
- Your MacNuticastReplays the phone’s Bonjour record and relays Xcode’s traffic on tunnel ports in the 55000–58000 range, opened as Xcode needs them.
- XcodeRun destinationiPhone-Mike is listed and ready.
Xcode then builds, installs and debugs as it would with the phone on your desk. There is no account and no cloud relay: the traffic stays on your own mesh.
It comes back on its own
- What changesWi‑Fi or VPNYour Mac joins another Wi‑Fi, its IP changes, or the VPN reconnects.
- NuticastBridge restartsIt notices and restarts the bridge by itself. You press nothing.
- XcodeBridge activeThe iPhone is listed again.
When the Mac’s IP, Wi‑Fi or VPN changes, Nuticast restarts the bridge by itself. After a quit and reopen, it restores the bridges that were active. If a bridge ends in Error, use Scan port once the phone is back online.
A cable on another computer skips the Wi‑Fi
If the iPhone is plugged into another computer running Nuticast (a Mac, or a Windows PC with Nuticast USB Host), that computer shares the cable and your Xcode Mac reaches the phone through it. The iPhone needs no Wi‑Fi and no VPN, and the computer with the cable needs no license. Setup is under USB via computer.
- iPhoneiPhone-LabOn a cable. Needs no Wi‑Fi and no VPN.
- The Mac with the cableUSB Sharing onNuticast shares the cabled iPhone. This Mac needs no license.
- Your MacNuticastAdds the phone with the “USB via computer” connector.
- XcodeRun destinationiPhone-Lab is listed and ready.
When it works and when it does not
Works when
- The iPhone is on Wi‑Fi. A different Wi‑Fi from your Mac is fine.
- The iPhone has been paired with your Xcode Mac once, next to it.
- The Mac and the iPhone are on the same mesh VPN (Tailscale, ZeroTier, Netbird or a manual IP).
- You run iOS 17 or later, macOS 13.5 or later and Xcode 15 or later.
- Your Mac is awake.
- Or the iPhone is cabled to another computer running Nuticast with USB Sharing on (or Nuticast USB Host on a Windows PC). Then it needs no Wi‑Fi and no VPN.
Does not work when
- The iPhone is on cellular. Cellular does not work.
- The iPhone was never paired with your Xcode Mac.
- The mesh VPN is on only one of the two devices.
- iOS older than 17, macOS older than 13.5 or Xcode older than 15.
- Your Mac is asleep.
- The iPhone is still on your Mac’s Wi‑Fi. Nuticast refuses to start the bridge then, because it would conflict with normal local debugging.
Under the hood
For engineers: services, ports and what gets relayed
- Xcode finds a paired wireless iPhone through its Bonjour service
_remotepairing._tcp, the RemotePairing control channel that Xcode anddevicectluse to start a debug session. - While the phone is still on your Wi‑Fi, Nuticast records its Bonjour identity and matches it to the same device on your mesh VPN. When the phone is away, it re-advertises that identity on your Mac as a proxy record.
- Nuticast then relays the RemotePairing and CoreDevice tunnel traffic over the mesh to wherever the phone is. It relays bytes between Xcode and the phone.
- The tunnel uses tunnel ports in the
55000–58000range, opened as Xcode needs them. The app lists the tunnel ports, so you can see what Xcode is talking to. - There is no account and no cloud relay. Traffic stays on your mesh VPN, or between your own Macs when you use a cable.
Set it up
Start with Remote Wi‑Fi. USB via computer has its own section further down.
Before you start
- For Remote Wi‑Fi, a mesh VPN: Tailscale, ZeroTier or Netbird, installed and signed in on both Mac and iPhone (same network on that provider).
- The iPhone paired with Xcode once, next to the Mac. On iOS 27 or later, Xcode 27 can do this over Wi‑Fi: in Device Hub, click + → Pair Nearby Device… with both on the same Wi‑Fi. On older iOS, pair over USB once.
- For Remote Wi‑Fi, the iPhone on Wi‑Fi when you bridge. A different Wi‑Fi from the Mac is fine. Cellular doesn’t work: Apple’s wireless debugging doesn’t run the same way over cellular.
Nuticast doesn’t set these up for you: it builds on a mesh VPN and a device Xcode already knows.
For alternatives and their trade-offs, see how to debug an iPhone in Xcode on a different network.
Choose your mesh VPN
Nuticast works the same way whichever mesh VPN you use. The only difference is how it finds your iPhone’s address on that network.
Setup guideTailscaleDevices are found automatically from its command line.
Setup guideZeroTierPaste the device IP from your dashboard.
Setup guideNetbirdDevices are found automatically from its command line.- Manual IPAny other mesh VPN: type in the IP it assigned your iPhone.
Not on Tailscale, ZeroTier or Netbird? Nuticast isn’t limited to those three. Pick Manual IP when adding a device: confirm your iPhone and Mac are joined to the same network on whichever mesh VPN you actually use, find the IP that VPN assigned the iPhone (its own app or dashboard will show this), and type that IP straight into Nuticast. Everything after that (bridging, auto-restart, status) works exactly as it does for the three built-in providers.
Add the device
Three steps in the Add Device window:
- Find the iPhone on Wi‑Fi. With the phone still next to the Mac (on the same Wi‑Fi, or on USB), pick it from the list Nuticast finds.
- Match your mesh VPN device. Pick which mesh VPN you’re using, then match the same physical phone from its device list (Tailscale, Netbird) or type in its assigned IP (ZeroTier, or Manual IP for anything else).
- Name it. Any label works, e.g. “Mike’s iPhone.” Saved locally only; nothing is uploaded.
Start the bridge
Once the iPhone has left your Mac’s Wi‑Fi and joined another Wi‑Fi, toggle Start Bridge (main window, device detail, or menu bar). Keep the phone on Wi‑Fi: cellular doesn’t work.
Nuticast then:
- Confirms the phone is actually remote (refuses if it’s still on the same Wi‑Fi, because that would conflict with normal local debugging).
- Checks it’s reachable over your mesh VPN.
- Makes it visible to your Mac again.
- Forwards traffic over that mesh VPN connection.
Xcode then treats it like a normal local device: build, install, debug.
USB via computer
For an iPhone plugged into another computer: a Mac mini in a rack, a teammate’s desk, your Mac at home, a Windows PC in a lab. The iPhone needs no Wi‑Fi and no VPN; the two computers need to reach each other, ideally over a mesh VPN. The computer with the cable can be a Windows PC running Nuticast USB Host (see the Windows host); the steps below are for a Mac.
- On the Mac with the cable: plug in the iPhone, unlock it, tap Trust. Open Nuticast → USB Sharing → switch it on, pick the address to share over (a mesh VPN address is the default) and copy it. This side needs no license.
- On the Mac with Xcode: Add Device → pick the iPhone (one already saved works too) → connector USB via computer → paste the address → Check → Save.
- Start the bridge as usual. Xcode builds, installs and debugs over the other Mac’s cable.
The iPhone has to be paired with the Xcode Mac once, like any Nuticast device. From the terminal: nuticast share on the Mac with the cable, nuticast add --device "<iPhone>" --usb <address> on the Xcode Mac. Every screen, step by step, with the error messages: USB sharing guide.
What the status says
- Off: not running
- Pairing…: connecting
- Bridge active: live
- Error: failed; the message says why
It keeps itself running
- Mac IP / Wi‑Fi / VPN changes: bridge restarts automatically.
- Quit and reopen: active bridges restore on launch.
- After an Error, use Scan port on that device if the phone just came back online.
Settings
- CLI path: set this per provider if its binary (
tailscale,netbird,zerotier-cli) isn’t on your PATH. - Device profiles: saved pairings, each remembering which mesh VPN provider they use; delete what you don’t need.
- Launch at Login: restore bridges after a restart.