iPhone-use
Browse docs
On this page

Install iPhone-use

Install the CLI and its matching precompiled Runner on your Mac.

For guided setup, copy the agent installation prompt. Your agent handles the CLI and its plugin or skill. To install manually, choose a CLI installation method below, then follow the plugin guide for your agent.

Requirements

Both modes require an Apple Silicon Mac, full Xcode, a USB-connected trusted iPhone with Developer Mode enabled and an unlocked screen. Standard mode currently requires macOS 27 / iOS 27 and uses Apple PNG screenshots with native HID, without Runner setup or development signing. Only Runner mode additionally requires an Apple Development certificate, private key and matching profile. The binary deployment floor of macOS 15 is not a standard-mode compatibility promise.

curl

On an Apple Silicon Mac, run the installer in Terminal. It verifies the stable release checksum, keeps the complete package under ~/.local/share/iphone-use/releases and links the CLI into ~/.local/bin. If that directory is already on your PATH, you can run iphone-use immediately. Otherwise the installer configures the startup files for your default zsh, Bash or fish shell. Open a new terminal to use the command, or run ~/.local/bin/iphone-use in the current one. Run the same command to upgrade a curl installation.

curl -fsSL https://iphone-use.com/install.sh | /bin/sh

Homebrew

brew install hughlee824/tap/iphone-use
command -v iphone-use
iphone-use --version

Homebrew installs the complete package. It does not compile source, run device setup or connect to your iPhone. Restart a client that was running before installation so it inherits the updated PATH.

If Homebrew reports that the agentsoma conflict formula is untrusted, review this project’s legacy formula and, if you trust it, run brew trust --formula hughlee824/tap/agentsoma, then retry the installation. This grants persistent trust only to that formula; trusting the entire Tap is unnecessary. The old formula need not be installed.

Manual download

Check the version on GitHub Releases, then use a new empty directory. The example uses release 0.5.0; replace it with the published version you intend to install. GitHub’s automatic source archives are not the precompiled package.

IPHONE_USE_VERSION=0.5.0
IPHONE_USE_PACKAGE="iphone-use-${IPHONE_USE_VERSION}-macos-arm64"
IPHONE_USE_RELEASE_URL="https://github.com/hughlee824/iphone-use/releases/download/v${IPHONE_USE_VERSION}"
(
  set -e
  curl --fail --location --show-error --output "${IPHONE_USE_PACKAGE}.tar.gz" \
    "${IPHONE_USE_RELEASE_URL}/${IPHONE_USE_PACKAGE}.tar.gz"
  curl --fail --location --show-error --output "${IPHONE_USE_PACKAGE}.tar.gz.sha256" \
    "${IPHONE_USE_RELEASE_URL}/${IPHONE_USE_PACKAGE}.tar.gz.sha256"
  shasum -a 256 -c "${IPHONE_USE_PACKAGE}.tar.gz.sha256"
  test ! -e "$IPHONE_USE_PACKAGE"
  tar -xzf "${IPHONE_USE_PACKAGE}.tar.gz"
)

Continue only after the checksum reports OK and extraction succeeds. If verification fails, download again without running package contents. Keep the entire package: bin and libexec must remain in their relative locations.

IPHONE_USE_DEST="$HOME/.local/share/iphone-use/releases/$IPHONE_USE_VERSION"
(
  set -e
  test ! -e "$IPHONE_USE_DEST"
  mkdir -p "$HOME/.local/share/iphone-use/releases" "$HOME/.local/bin"
  mv "$IPHONE_USE_PACKAGE" "$IPHONE_USE_DEST"
  ln -sfn "$IPHONE_USE_DEST/bin/iphone-use" "$HOME/.local/bin/iphone-use"
)
export PATH="$HOME/.local/bin:$PATH"
iphone-use --version

Add the PATH line to your shell configuration (usually ~/.zshrc for zsh). Use command -v iphone-use when switching between Homebrew and a manual install. The destination version directory must not already exist.

macOS signing status

The CLI is ad-hoc signed, without Developer ID signing or notarization. The published 0.5.0 package and matching Runner were verified on iPhone 12 Pro / iOS 27.0.1; see the release evidence for the tested actions. Fresh-Mac first-run installation remains unverified. Do not remove quarantine metadata or disable system protection to bypass a refusal.

When migrating from the old agentsoma formula, disconnect, uninstall it, then install iphone-use: both provide the compatibility command. Preferences use ~/.iphone-use/config.json. Renamed Runner apps require setup again; standard mode does not.

Upgrade and remove

Finish or stop recordings and disconnect active sessions before upgrading. Install the complete matching package.

brew update
brew upgrade iphone-use
iphone-use --version

For manual installations, verify the new package, place it in a new version directory and switch the symlink. Keep the old directory for rollback; do not mix package files. Update the client plugin separately.

When upgrading from a pre-0.4.0 release, use the new CLI to run Runner setup, then reconnect. Do not reuse an old explicit .xctestrun path. Runner protocol 13 requires the matching CLI; host protocol 2 rejects old hosts. Standard mode needs no Runner setup.

Runner type now inserts literal text at the current focused caret or selection. It no longer focuses, clears or replaces implicitly; Runner --mode replace and --mode append are rejected. Follow the explicit text workflow. Update the plugin/skill separately and start a new client session. Preview URLs now survive disconnect: review preview access and revocation.

brew uninstall iphone-use removes the Homebrew package. Manual users remove their own symlink and version directory. Both leave local device preparation and the iPhone Runner in place. For complete removal, also remove ~/Library/Application Support/iphone-use and uninstall iPhone-use Runner on the phone. Keychain certificates and Xcode signing material are separate.