---
title: "Test AI agent builds on a real iPhone away from your Mac"
description: "Coding agents run Xcode on your office Mac while you're elsewhere. How to run each build on your own iPhone right away, without waiting on TestFlight."
url: https://www.nuticast.com/blog/test-ai-agent-builds-on-real-iphone
---

# Test AI agent builds on a real iPhone away from your Mac

By [Taha Yasin Kucuk](https://www.nuticast.com/about) Published 10 October 2026 Updated 8 November 2026 4 min read

[Let the agent build to your iPhone: try Nuticast](https://www.nuticast.com/download)

**Short answer:** if a coding agent builds your app with Xcode on a Mac at the office and your iPhone is with you, you have two options. You can wait for TestFlight, or you can make the phone show up in that Mac's Xcode as a normal wireless device. Apple's wireless debugging only works on the same local network. A mesh VPN (Tailscale, ZeroTier, or Netbird) plus a Bonjour bridge such as [Nuticast](https://www.nuticast.com/) removes that limit, so the agent's Run lands on your phone in seconds. The phone has to be on Wi‑Fi.

## The setup this is about

More iOS developers now leave a Mac running at the office or at home with Claude Code, Codex, Cursor, or their own agents working in the Xcode project. They steer it from a laptop or a phone. The code changes arrive fine. Testing is the slow part: the agent can build for the simulator, but some things only show up on a real device: camera, push, Bluetooth, background modes, performance, and how the UI actually feels in the hand.

One Nuticast customer runs exactly this setup. Their office Mac runs the agents, and they direct the work remotely. Before Nuticast they used TestFlight:

> "I used TestFlight builds for some time, but that is so slow, and Apple has daily limits as well."

## Option 1: TestFlight for every change

TestFlight works from anywhere and needs nothing extra. For agent-driven work it has three costs:

- **Each change is a full upload.** Archive, upload, wait for App Store Connect to process, wait for the build to reach the device. That's minutes per iteration, and agents iterate fast.
- **Build-number bookkeeping.** Every upload needs a new build number, which is one more thing for the agent to get right.
- **No live debugger.** You get crash logs afterwards, not breakpoints or the console while the bug is happening.

TestFlight is still the right tool for handing builds to testers. It's a slow loop for "did the agent's last change work on a phone?"

## Option 2: make the phone local to the office Mac's Xcode

Xcode finds wireless devices with Bonjour (mDNS), which doesn't cross networks. That's why the phone disappears from the run destination menu the moment you leave the office Wi‑Fi, even if a VPN can reach it. The details are in [why Xcode wireless debugging breaks when your iPhone leaves Wi‑Fi](https://www.nuticast.com/blog/xcode-wireless-debugging-breaks-on-roam).

The fix has two halves:

1. **Reachability:** put the Mac and the iPhone on the same mesh VPN. [Tailscale](https://www.nuticast.com/blog/tailscale-for-ios-developers), [ZeroTier](https://www.nuticast.com/blog/zerotier-for-ios-developers), and [Netbird](https://www.nuticast.com/blog/netbird-for-ios-developers) all work.
2. **Discovery:** Nuticast runs on the office Mac. It re-advertises the phone's Bonjour record there and relays Xcode's pairing and tunnel traffic over the mesh to wherever the phone is.

After that, the phone is a normal device in that Mac's Xcode. When the agent runs `xcodebuild` or `xcrun devicectl device install app` against your device, or you press Run over Screen Sharing, the build installs on the phone in your hand. Breakpoints and the console work too.

## Setting it up

Do this once while you're at the office, with the phone on the same Wi‑Fi as the Mac:

1. Check that Xcode on the Mac can already run your app on the phone over wireless debugging.
2. Install the same mesh VPN on the Mac and the iPhone and sign both in.
3. Install Nuticast on the Mac, pair the phone, and link it to its mesh VPN device. [How it works](https://www.nuticast.com/how-it-works) has the full steps.

When you leave, start the bridge from the menu bar (or leave it on). The phone shows up in Xcode again over the mesh.

Tell your agent which device to target. `xcrun devicectl list devices` lists its identifier, and `xcodebuild -destination 'id=<UDID>'` builds for it.

Agents that speak MCP (Claude Code, Codex and others) can do the bridge part themselves: Nuticast ships a local MCP server that starts the bridge, waits until Xcode sees the phone and returns its UDID. Setup is in the [guide for AI coding agents](https://www.nuticast.com/ai-agents).

## Limits worth knowing

- **Wi‑Fi only.** Cellular doesn't work. The customer above uses a second phone's Personal Hotspot when there's no Wi‑Fi nearby; to the test phone that's just another Wi‑Fi network.
- **First pairing is local.** Pair once on the same Wi‑Fi as the Mac. After that the phone can be anywhere.
- **The Mac must stay awake** and on its network, which an agent box usually is anyway.

## Which one to use

- **Handing builds to testers or reviewers:** TestFlight.
- **Checking each agent change on your own phone, with a debugger:** a mesh VPN plus [Nuticast](https://www.nuticast.com/download). Pairing and discovery are free; bridging needs a license.

The iPhone is not on your Mac’s Wi‑Fi? Xcode can still run on it.

Nuticast makes the phone a normal Xcode run destination: on another Wi‑Fi over Tailscale, ZeroTier or Netbird (Remote Wi‑Fi; the phone stays on Wi‑Fi, cellular does not work), or plugged into another computer (USB via computer). Pairing is free. Bridging is $49 per year, with a 14-day refund.

[Download for Mac](https://www.nuticast.com/download/Nuticast.dmg) [Get Nuticast for Mac](https://www.nuticast.com/download) [How it works](https://www.nuticast.com/how-it-works)

## Common questions

**Can Claude Code or Codex install a build on my iPhone while I'm away from the Mac?** Yes, as long as the phone shows up in that Mac's Xcode. With the Mac and the iPhone on the same mesh VPN and Nuticast running on the Mac, the agent runs `xcodebuild` or `xcrun devicectl` against the phone's UDID and the build lands on the phone in your hand. The phone has to be on Wi‑Fi.

**Do I still need TestFlight?** For handing builds to testers and reviewers, yes. For checking the agent's own changes on your phone, with breakpoints and the console, a mesh VPN plus Nuticast is the faster loop.

**Does the iPhone need Wi‑Fi or cellular?** Wi‑Fi. Cellular doesn't work. A second phone's Personal Hotspot counts as Wi‑Fi for the test phone.

Written by [Taha Yasin Kucuk](https://www.nuticast.com/about)

The iOS developer who builds Nuticast, answers its support mail and writes every guide on this site. If a step does not match what you see, write to [hello@nuticast.com](mailto:hello@nuticast.com).

[GitHub](https://github.com/webwarrior06) [About Nuticast](https://www.nuticast.com/about) [Changelog](https://www.nuticast.com/changelog)

## Related guides

- [8 November 2026 Debug an iPhone in Xcode when it's on a different network](https://www.nuticast.com/blog/debug-iphone-xcode-different-network)
- [8 November 2026 Tailscale on iPhone and iPad: iOS setup in 5 steps](https://www.nuticast.com/blog/tailscale-for-ios-developers)
- [3 November 2026 Share a test iPhone with every Mac on your team](https://www.nuticast.com/blog/share-test-iphone-across-team-macs)

## Try it. Pairing is free.

Bridging needs a license on the Xcode Mac: $49 per year, with a 14-day refund if it does not work for your setup. Requires macOS 13.5+, Xcode 15+ and iOS 17+.

[Download for Mac](https://www.nuticast.com/download/Nuticast.dmg) [Send this to my Mac](mailto:?subject=Nuticast%20for%20my%20Mac&body=https%3A%2F%2Fwww.nuticast.com%2Fdownload) Shares the download link with your Mac. [See pricing](https://www.nuticast.com/pricing)

[More guides](https://www.nuticast.com/blog)
