Skip to content
Skills Library
Programming · Building & coding

ios-remote-development

/ios-remote-development

Build, install, launch and debug iOS apps on a physical iPhone from this Mac, at home over Wi-Fi or anywhere over Tailscale (hands-free tunnel, one-tap OTA page, or TestFlight). Use it whenever an iOS app should go onto or run on the phone ("install on my phone", "try it on the device", "why did it crash", "show device logs"), or when the phone is away from home.

Licence
MIT
Last repository change
31.10.2026

Assessment and security

95/ 100Class: good
Format20 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
14
Scripts
6
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 31.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 6 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: install.sh, scripts/common.sh, scripts/ota_publish.py, scripts/ota_server.py, scripts/rp_dev.py, scripts/rp_install.py

What it does and when to use it

Build, install, launch and debug iOS apps on a physical iPhone from this Mac, at home over Wi-Fi or anywhere over Tailscale (hands-free tunnel, one-tap OTA page, or TestFlight). Use it whenever an iOS app should go onto or run on the phone ("install on my phone", "try it on the device", "why did it crash", "show device logs"), or when the phone is away from home.

Triggers from the description

install on my phonetry it on the devicewhy did it crashshow device logs
Original author description

Build, install, launch and debug iOS apps on a physical iPhone from this Mac, at home over Wi-Fi or anywhere over Tailscale (hands-free tunnel, one-tap OTA page, or TestFlight). Use it whenever an iOS app should go onto or run on the phone ("install on my phone", "try it on the device", "why did it crash", "show device logs"), or when the phone is away from home.

How it works

  1. Workflow
  2. Rules
  3. TestFlight backup
  4. Troubleshooting
Original SKILL.md headings · 76 lines, 1,054 words
SKILL.md preview
---
name: ios-remote-development
description: Build, install, launch and debug iOS apps on a physical iPhone from this Mac, at home over Wi-Fi or anywhere over Tailscale (hands-free tunnel, one-tap OTA page, or TestFlight). Use it whenever an iOS app should go onto or run on the phone ("install on my phone", "try it on the device", "why did it crash", "show device logs"), or when the phone is away from home.
---

# iOS remote development (this Mac → your iPhone, anywhere)

Two commands do the work. `install.sh` links them into `~/.local/bin`; otherwise call them from this skill's `scripts/` folder.
- `phone-dev`: build, run, launch, kill, logs, crashes, apps, TestFlight.
- `phone-install`: installs only, and handles setup, pairing and status.

Device settings live in `~/.config/ios-remote-dev/config`: `PHONE_UDID`, `PHONE_TS_NAME` (the phone's Tailscale machine name) and `PHONE_TEAM`. If a command says a setting is missing, or the RemotePairing record is missing, follow `references/setup.md`.

`phone-install` tries three paths in order:
1. `devicectl`, when the Mac sees the phone locally (same Wi-Fi or USB).
2. Hands-free over Tailscale. It uses the phone's RemotePairing service and a userspace CoreDevice tunnel, needs no root, and the phone shows nothing.
3. A one-tap OTA page on this Mac's tailnet HTTPS address, as the last resort.

TestFlight is a slower backup. `phone-dev testflight` uploads a Release build, and TestFlight installs it on its own, over cellular too.

## Workflow

```sh
phone-dev status                                        # which paths work right now (changes nothing)
phone-dev run   <X.xcodeproj|X.xcworkspace> "<Scheme>"  # build → install → launch → 20 s of its logs
phone-dev build <X.xcodeproj|X.xcworkspace> "<Scheme>" [--config Release]   # last stdout line = .app path
phone-dev install <App.app|App.ipa> [--mode devicectl|tailnet|ota]
phone-dev launch <bundle-id>                            # (re)launch; brings the app to the front
phone-dev kill   <bundle-id>
phone-dev logs   --process <Executable> [--grep RE] [--seconds N] [--launch <bundle-id>]
phone-dev crashes --match "<App name>" [--pull DIR]      # .ips reports; the JSON body starts on line 2
phone-dev apps                                          # user apps with versions
phone-dev testflight <X.xcodeproj|X.xcworkspace> "<Scheme>"   # Release archive → internal TestFlight
phone-dev run ... --testflight                          # if only OTA worked, also upload to TestFlight
```

Exit codes:
- `0`: ok.
- `2`: the phone is unreachable. Tailscale is off on the phone, the phone is asleep, or it is out of coverage.
- `3`: pairing problem.
- `4`: the action failed.
- `5`: App Store Connect setup is missing for `testflight`. The output gives the exact one-time steps.
- `10`: an OTA link was published. The user must open the printed `https://…ts.net:<port>/` page in Safari on the phone and tap Install. Tell them, and don't keep retrying.

## Rules
- **The user may be holding the phone.** `launch` and `run` bring the app to the front and interrupt whatever is on screen. Use them only when the user asked to run or test the app, or agreed to it. `install`, `build`, `apps`, `crashes` and `logs` without `--launch` are silent.
- **No phone screenshots.** Never capture the phone's screen unless the user explicitly asks; it may show their private apps. To check UI, render previews on the Mac instead, for example with SwiftUI `ImageRenderer` in a Debug build.
- **Check crashes after a device install.** Run `crashes --match <App>` and fix what they show. Reports include the faulting thread and its symbols.
- **Keychain over SSH.** Signing can fail with `errSecInternalComponent` because the login keychain is locked in the SSH session.
  - Start a shared session (`tmux new -s sign`) and run `security unlock-keychain ~/Library/Keychains/login.keychain-db` inside it.
  - Ask the user to attach (`tmux attach -t sign`) and type the password there.
  - Run the build in that same session.
  - Never ask for the password in chat, and never write it anywhere.
- **Builds must be device-signed.** `phone-dev build` adds `-allowProvisioningUpdates DEVELOPMENT_TEAM=$PHONE_TEAM CODE_SIGN_STYLE=Automatic`. A simulator build or an unsigned build can't be installed.
- **Protect the keys.**
  - `~/.pymobiledevice3/remote_<UDID>.plist` lets anyone who can reach the phone install apps on it.
  - The App Store Connect `.p8` key can upload builds to the account.
  - Keep both at mode 600. Never print, copy or commit them.
- **Tailscale serve.** Only add ports or paths. Never reset or overwrite existing entries, and never use Funnel, because the OTA page must stay tailnet-only.

## TestFlight backup
- **What it does.**
  - `testflight` archives the Release configuration with a timestamp build number (`YYYYMMDD.HHMMSS`).
  - It uploads with `testFlightInternalTestingOnly`, so that build can never be submitted to the App Store.
  - Apple processes it in about 5–15 minutes. With automatic distribution on the app's internal group, and Automatic Updates on in the phone's TestFlight app, iOS then installs it by itself, in its own time.
- **Release is a different app.** A Release bundle ID usually differs from a Debug one, so the TestFlight app installs next to the Debug app and keeps its own data. Never upload Debug builds.
- **Credentials.** Uploads need an App Store Connect API key: `phone-dev asc-key <AuthKey_ID.p8> <issuer-id>` moves it into `~/.appstoreconnect`. Without a key, `testflight` falls back to Xcode's account. Xcode's account is often enough for development signing but not for uploads, and then the upload fails with "Failed to Use Accounts".
- **One-time per app.** On the web, create the app record with its Release bundle ID; the API cannot create apps. Then create an internal TestFlight group that includes the user, with automatic distribution on.
- **Export compliance.** The app's Info.plist should set `ITSAppUsesNonExemptEncryption`. Without it, every build waits for an export-compliance answer and never arrives on its own. Only the user can decide that value.

## Troubleshooting
- **`status` says the tailnet is unreachable:** ask the user to open Tailscale on the phone and keep it connected. VPN On Demand in the Tailscale app helps.
- **`rp: missing RemotePairing record` or exit 3:** run `phone-install --pair` with the phone on USB, or `phone-install --pair <phone LAN IP>` with both on the same Wi-Fi. It is promptless once the phone trusts this Mac.
- **The hands-free tunnel only works while the phone's Wi-Fi is on.**
  - With Wi-Fi off, Tailscale still reaches the phone through a DERP relay, but iOS refuses ports 49152–49169 because RemotePairing listens only while Wi-Fi is up.
  - Then `launch`, `kill`, `logs`, `crashes` and `apps` fail, and installs fall back to OTA by themselves (exit 10, about 5 s). Use TestFlight if no tap is acceptable.
  - Another Wi-Fi network (a café, a hotel) should work, since the listener accepts connections on the Tailscale address. This has not been verified yet.
- **Launch over the tunnel fails with an instruments or DDI error:** `rp_dev.py` auto-mounts the Developer Disk Image once. Otherwise `phone-dev launch` falls back to `devicectl` when the phone is local.
- **More detail:** how it works, setup, removal and dead ends are in `references/setup.md`.
Files in this package (14)
  • .gitignore 1 KB
  • LICENSE 1 KB
  • README.md 3 KB
  • SKILL.md 7 KB
  • config.example 1 KB
  • install.sh 2 KB
  • references/setup.md 4 KB
  • scripts/common.sh 3 KB
  • scripts/ota_publish.py 6 KB
  • scripts/ota_server.py 2 KB
  • scripts/phone-dev 13 KB
  • scripts/phone-install 13 KB
  • scripts/rp_dev.py 7 KB
  • scripts/rp_install.py 9 KB

Versions

The database has no other skills named ios-remote-development.

Database snapshot: 13.11.2026 · package version bfa3726c93ab (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100terminal-phone
    Operate an iOS simulator or a paired real iPhone with terminal-phone, to install, launch, tap through and verify an iOS app. Use when the user wants to run, test, demo, screenshot or record their iOS app, check a screen or flow on an iPhone, or drive a phone from the terminal.
  • 100run-device
    Build, install, and launch an iOS app on a physical iPhone or iPad entirely from the command line (no Xcode GUI), using xcodebuild + devicectl. Use when the user wants to run, test, or screenshot their app on a real device without opening Xcode.
  • 86herdr-ios-simulator
    Build, run, drive and debug iOS apps on a simulator shared with the user inside herdr. Use whenever the user wants to run, see, test or debug an iOS or iPhone app ("run it on the simulator", "show me on the iPhone", "tap through the sign-in flow", "why does it crash", "check the…
  • 100tapwright
    Use when testing, exploring or driving an app on a real iPhone through Tapwright (MCP tools such as look, tap, type_text, scroll, wait_for, open_app, alert), when asked for QA, a UI check or a bug hunt on an iOS app on the user's phone, when setting Tapwright up for a user, or…
  • 95build-deploy
    Build and deploy Xcode projects to Mac or iOS devices in one step. Use when user says "build and deploy", "deploy to iPad", "rebuild server", "install on device", or wants to test changes on a physical device. Handles xcodegen → xcodebuild → install → launch automatically.
  • 91ios-simulator
    Verify and debug native, React Native, Expo, or Flutter apps on an iOS Simulator with agent-device. Use when an agent needs to launch an app, inspect its live UI, tap, type, scroll, validate a code change, collect failure evidence, or reproduce a workflow on an iPhone or iPad Simulator.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.