---
title: "WebDriverAgent on a real iPhone: setup and errors | Mobster"
description: "Build and sign WebDriverAgent for an iPhone: Developer Mode, the free-account 7-day profile and the exact text and fix of each common error."
canonical: "https://mobster.dev/blog/webdriveragent-real-iphone"
last-updated: "2026-11-14"
---

Build and sign WebDriverAgent for an iPhone: Developer Mode, the free-account 7-day profile and the exact text and fix of each common error.

# WebDriverAgent on a real iPhone: signing, Developer Mode and the errors

18 October 2026

WebDriverAgent (WDA) is the piece that lets a computer tap an iPhone. Appium, Mobster and most other real-device tools depend on it. Getting it onto a phone takes four things: a signature, Developer Mode, a trusted profile and a running test. Each one fails with its own message.

This guide covers the setup once, then each common error with its exact text, the cause and the fix. It ends with what guided setup in Mobster does for you.

## What WebDriverAgent is

[WebDriverAgent](https://github.com/appium/WebDriverAgent) is, in its README’s words, “a WebDriver server implementation for iOS that can be used to remote control iOS devices.” It links `XCTest.framework` and calls Apple’s APIs to run commands on the device. Appium maintains it. The README sends you to the `appium-ios` monorepo for current development.

In practice, WDA is an XCTest runner. Xcode builds it as a UI test bundle called `WebDriverAgentRunner-Runner`, installs it on the phone and starts it with the `xcodebuild` test machinery. While the test runs, it serves the screen’s accessibility tree and accepts taps and typing over HTTP, on port 8100 by default.

That design explains most of the errors below. A test runner is an app that needs a signature. It needs the phone to trust the signer, to allow developer software and to let a test take control of the UI.

## Prepare the iPhone

Appium’s [device preparation page](https://appium.github.io/appium-xcuitest-driver/latest/getting-started/device-setup/) lists three settings. Apple documents the first.

1. **Trust the Mac.** Open Xcode, connect the phone and accept the “Trust This Computer” prompt on it.
2. **Turn on Developer Mode.** Go to Settings › Privacy & Security › Developer Mode, switch it on and tap Restart. After the restart, confirm the second alert and enter your passcode. [Apple](https://developer.apple.com/documentation/xcode/enabling-developer-mode-on-a-device) says the switch appears only if you start pairing the device or paired it to a Mac before.
3. **Turn on UI Automation.** Go to Settings › Developer › Enable UI Automation. The Developer menu appears after Developer Mode is on.

## Sign the runner

Apple requires every app on a phone to have a provisioning profile. For WDA that means signing the runner with a development team. Appium’s [provisioning guide](https://appium.github.io/appium-xcuitest-driver/latest/getting-started/provisioning-profile/) says free and paid Apple Accounts both work, with these differences:

|  | Free account | Paid account |
|---|---|---|
| Team | Your personal team | Your developer team |
| Wildcard profile (`*`) | Not available | Available |
| Bundle ID | Must be unique to you | Any ID your profile covers |
| Automatic configuration with a team ID | Not supported | Supported |

Appium’s page says that automatic configuration is “only supported for paid Apple Developer accounts” and that free accounts “are still able to sign WDA and link it to their default personal team.” For a free account, the same guide has you create a throwaway Xcode project with a unique product name and organization name and your team set, then reuse the bundle ID that Xcode registered. The Mobster [device setup guide](https://docs.mobster.dev/device-setup) uses the same 7-day figure for a free Apple Account. Appium gives the same 7 days for offline profiles.

If you build with `xcodebuild`, the profile’s bundle ID needs the suffix XCTest adds. Appium notes that `xcodebuild` appends `.xctrunner`, so a runner with the bundle ID `io.appium.WebDriverAgentRunner` needs a profile for `io.appium.WebDriverAgentRunner.xctrunner`, `io.appium.WebDriverAgentRunner.*` or `*`.

## Build and start it

Appium’s [prebuilt WDA guide](https://appium.github.io/appium-xcuitest-driver/latest/guides/run-prebuilt-wda/) explains the two phases. `build-for-testing` builds the runner and writes an `.xctestrun` file. `test-without-building` starts it from that file. Its pattern, with a device destination and signing flags, looks like this:

```
# from the WebDriverAgent folderxcodebuild build-for-testing \  -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner \  -destination 'platform=iOS,id=<UDID>' \  -derivedDataPath wda_build \  DEVELOPMENT_TEAM='<your team id>' \  -allowProvisioningUpdates -allowProvisioningDeviceRegistrationxcodebuild test-without-building \  -xctestrun wda_build/Build/Products/WebDriverAgentRunner_iphoneos<version>-arm64.xctestrun \  -destination 'platform=iOS,id=<UDID>'
```

`xcodebuild test` does both in one step. The `.xctestrun` file name depends on the destination and the SDK, so list `wda_build/Build/Products` to find yours. Get the UDID from Xcode’s Devices window or `xcrun xctrace list devices`. Keep the phone unlocked while the test starts.

The destination format is the one [Test an iOS app on a real iPhone from your Mac](https://mobster.dev/blog/test-ios-app-on-real-iphone) uses for XCUITest. These commands follow Appium’s documentation. We haven’t run this exact build on a device for this post.

## Reach it over USB

The runner listens on the phone, not on your Mac. `iproxy`, from libimobiledevice’s [libusbmuxd](https://github.com/libimobiledevice/libusbmuxd), relays a Mac port to the phone through the USB cable:

```
iproxy -s 127.0.0.1 -u <UDID> 8100:8100curl http://127.0.0.1:8100/status
```

`/status` answers with the runner’s state once WDA is up.

Bind the relay to `127.0.0.1` with `-s`. WDA has no authentication, and by default it listens on every interface of the phone, including Wi-Fi. Mobster builds it with `USE_IP=127.0.0.1` so it listens on the phone’s loopback, which only USB reaches. [USB or Wi-Fi for iPhone automation](https://mobster.dev/blog/iphone-automation-usb-vs-wifi) explains the reasoning and the three places it is enforced.

## Errors and fixes

Each heading is the text you see. Where the source is a GitHub issue, the link is in the sources list.

### Developer App Certificate is not trusted

Xcode shows this when you build with a free Apple Account. Opening the runner on the phone shows an equivalent “Untrusted Developer” alert. Appium’s provisioning guide gives the fix:

1. On the phone, open Settings › General › VPN & Device Management.
2. Under Developer App, select the Apple Account email that built the runner.
3. Tap Trust, then Allow.

The phone must be online, because it verifies the certificate. [Apple’s page](https://support.apple.com/en-us/118254) says an offline phone shows “Not Verified” until you connect it and tap Verify App. On iOS 18 and later, Apple labels the button “Allow & Restart” for enterprise apps.

### Could not launch “WebDriverAgentRunner”

Xcode shows this when you start the runner from the IDE:

```
Could not launch “WebDriverAgentRunner”Domain: IDEDebugSessionErrorDomainCode: 3Failure Reason: <developer> has denied the launch request.Internal launch error: process launch failed: Unspecified
```

This text is from [appium/appium issue 14251](https://github.com/appium/appium/issues/14251), reported on iOS 13.3 and Xcode 11.3.1. Maintainers pointed to Appium’s real-device guide, and the issue was closed with no further reply. It names no cause, and we don’t have a source for one.

“Denied the launch request” means the phone refused to start the app. Check, in this order, the three things the phone must allow: the developer profile is trusted, Developer Mode is on, and the phone is unlocked. Resolve any trust or Developer Mode warning before trying again.

### No profiles for the xctrunner were found

On Xcode 26, the build can stop before it reaches the phone. [appium-xcuitest-driver issue 2850](https://github.com/appium/appium-xcuitest-driver/issues/2850), opened on Xcode 26 and iOS 26.4.2, quotes the message:

```
No profiles for 'com.facebook.WebDriverAgentRunner.xctrunner' were found:Xcode couldn't find any iOS App Development provisioning profiles matching'com.facebook.WebDriverAgentRunner.xctrunner'. Automatic signing is disabledand unable to generate a profile. To enable automatic signing, pass-allowProvisioningUpdates to xcodebuild.
```

The message tells you the fix: pass `-allowProvisioningUpdates` to `xcodebuild`, as in the command above. A maintainer’s reply on the issue adds `-allowProvisioningDeviceRegistration`, which registers the phone with your team if it isn’t yet. Appium’s cap for this is `appium:allowProvisioningDeviceRegistration`.

A free account can’t generate a profile for the default bundle ID. Appium’s guide shows the same failure as “Xcode failed to create provisioning profile”. Give the runner a bundle ID of your own, as in the signing section above.

### xcodebuild exited with code 65 or 70

Appium’s provisioning guide says code 65 means “code signing is not set up correctly and must be reconfigured.” It also appears when a manual profile expires. Code 70 can be invalid signing too, or an invalid `xcodebuild` setting such as a wrong platform version. On a CI machine, code 65 can also mean `xcodebuild` can’t read the signing key from the keychain. Appium’s troubleshooting page suggests a private key outside the system keychain.

### Building fails with “isn’t registered in your developer account”

Mobster shows this message when your phone is unregistered. Open Xcode once with the phone connected so it registers the phone on your team. You can also register it in Apple’s developer portal. Build again. The cause is the same as above. Use `-allowProvisioningDeviceRegistration` to register from the command line.

### Waiting for WebDriverAgent to start on device

```
Waiting for WebDriverAgent to start on device
```

The exact text is from [appium/appium issue 6895](https://github.com/appium/appium/issues/6895), filed in 2016 against Appium 1.6 beta 2 on an iPhone 6 Plus. Current Appium words its waiting messages differently, so treat the text as the symptom: the runner build or launch never finished, and nothing is answering on 8100.

Don’t wait. Run the two `xcodebuild` commands above yourself and read the first error. It is usually one of the messages in this list. In Mobster, you see `WebDriverAgent is not answering at http://127.0.0.1:8100`. Start with the relay and the helper app on the [troubleshooting page](https://docs.mobster.dev/troubleshooting#wda-not-answering). A locked phone also stalls the start. iOS won’t start UI automation while locked, and Xcode gives up after 60 seconds.

### Timed out while enabling automation mode

On iOS 15 and later, a test session needs the phone’s passcode the first time. Appium’s known-problems list says real devices “require passcode or Touch ID when starting a new session” and suggests disabling the passcode as a workaround. If you don’t answer the prompt, the start fails with this message, quoted in [appium/WebDriverAgent issue 587](https://github.com/appium/WebDriverAgent/issues/587):

```
Underlying Error: Timed out while enabling automation mode.
```

The reporter had already run `automationmodetool enable-automationmode-without-authentication` on the Mac, and the phone still asked. The maintainers’ reply said it is an Apple behavior outside Appium.

What helps is the switch on the phone. Turn on Settings › Developer › Enable UI Automation, or enter the passcode when it asks. Keep the phone unlocked while it does. The Mobster troubleshooting page for [Enable UI Automation](https://docs.mobster.dev/troubleshooting#ui-automation) reports that a healthy start gets past this point in about 2 seconds, and that a start waiting on the prompt fails after 60.

### The runner stops opening after a week

A free Apple Account signs the runner for 7 days. After that the icon stays but the app won’t launch. Rebuild and reinstall it with a fresh signature. The `xcodebuild build-for-testing` command above does that. The `mobster doctor` command prints how many days are left on the signature.

## What setup in Mobster does

Everything above is what [Mobster for Mac](https://mobster.dev/download) does in its Setup screen, in the order of this guide. It shows a picture of each step on the iPhone.

Connect your iPhone screen in Mobster for Mac: Xcode installed, Sam's iPhone found, Turn on Developer Mode with a picture of the Settings screen, Installing the helper app, and Let Mobster tap and type with an Allow button.

*The Mobster for Mac Setup screen walks the same steps.*

- **Signing.** It finds your Apple development teams, builds the helper for the connected phone with the team you pick, and installs it.
- **Developer Mode and UI automation.** It shows where the switch is. It asks for Enable UI Automation while the helper installs, before the first start, so the first start doesn’t hit the timeout.
- **Unlock.** It doesn’t start the helper on a locked phone. It checks the lock every 2 seconds and starts the helper about 2 seconds after you unlock.
- **Loopback.** It builds the runner with `USE_IP=127.0.0.1`, runs `iproxy` bound to `127.0.0.1` and refuses an `iproxy` that can’t bind there.
- **Seven days.** With a free account, it refreshes the signature by itself while the phone is plugged in and unlocked.

On a never-used iPhone 16, setup took 5 min 26 s from install to a ready helper. Trust and Developer Mode were done by hand in that run. The first install of the helper, which builds, signs and installs it, took 115 seconds on an M5 Max Mac and an iPhone 15 Pro. Xcode itself is a large download, and it isn’t counted.

Mobster doesn’t turn on Developer Mode for you. Apple requires a person to confirm it on the phone. It also never enters your passcode.

Without the app window, use `mobster serve --manage-device` for the same setup through the open-source `mobster` command, which also comes with Mobster for Mac. Run `mobster doctor` to check each part and see the fix under anything that’s wrong. Follow [Device setup](https://docs.mobster.dev/device-setup) for the steps for the `mobster` command. Find each message above by what you see in [Troubleshooting](https://docs.mobster.dev/troubleshooting#iphone).

[Get Mobster for Mac](https://mobster.dev/download). It builds, signs, starts and renews the helper on your iPhone: [free](https://mobster.dev/pricing) on any number of iPhones (AI runs on a supported AI plan, an API key or a model on your Mac).

With the phone ready, [Test an iOS app on a real iPhone from your Mac](https://mobster.dev/blog/test-ios-app-on-real-iphone) takes you to a passing test. [Test your iOS app on a real iPhone with an AI agent](https://mobster.dev/blog/test-ios-app-real-iphone-ai-agent) gives that phone to your coding agent.

## Questions

- ### Do I need a paid Apple Developer account to run WebDriverAgent on an iPhone?
  No. Appium's provisioning guide says free and paid accounts are both supported. A free account signs for your personal team, can't use a wildcard profile, and needs its own bundle ID. Its signature lasts 7 days.
- ### Why does WebDriverAgent stop working after a week?
  A free Apple Account signs the runner for 7 days. When the signature expires, the app won't open. Rebuild and reinstall it, or let a tool that renews it do that for you.
- ### Why is there no Developer Mode switch in Settings?
  Apple shows Developer Mode only after you start pairing the iPhone with Xcode, or if you paired it before. Plug it in, open Xcode, accept Trust This Computer, then look under Settings › Privacy & Security.
- ### Is WebDriverAgent safe to leave running?
  It has no password. Anything that reaches its port can read the screen and tap as you. Keep it on the phone's loopback and reach it over USB, as Mobster does.

## Sources

- [WebDriverAgent on GitHub (Appium)](https://github.com/appium/WebDriverAgent)
- [Appium XCUITest driver: device preparation](https://appium.github.io/appium-xcuitest-driver/latest/getting-started/device-setup/)
- [Appium XCUITest driver: provisioning profile](https://appium.github.io/appium-xcuitest-driver/latest/getting-started/provisioning-profile/)
- [Appium XCUITest driver: manual configuration for a generic device](https://appium.github.io/appium-xcuitest-driver/latest/getting-started/provisioning-profile/generic-device-config/)
- [Appium XCUITest driver: run prebuilt WDA (build-for-testing and test-without-building)](https://appium.github.io/appium-xcuitest-driver/latest/guides/run-prebuilt-wda/)
- [Appium XCUITest driver: known problems on real devices](https://appium.github.io/appium-xcuitest-driver/latest/troubleshooting/)
- [Apple: enabling Developer Mode on a device](https://developer.apple.com/documentation/xcode/enabling-developer-mode-on-a-device)
- [Apple Support: trust a developer app on iPhone](https://support.apple.com/en-us/118254)
- [appium/appium issue 14251: Could not launch WebDriverAgentRunner](https://github.com/appium/appium/issues/14251)
- [appium/appium issue 6895: Waiting for WebDriverAgent to start on device](https://github.com/appium/appium/issues/6895)
- [appium/WebDriverAgent issue 587: Timed out while enabling automation mode](https://github.com/appium/WebDriverAgent/issues/587)
- [appium/appium-xcuitest-driver issue 2850: No profiles for the xctrunner on Xcode 26](https://github.com/appium/appium-xcuitest-driver/issues/2850)
- [libusbmuxd on GitHub (iproxy)](https://github.com/libimobiledevice/libusbmuxd)
- [Mobster docs: device setup](https://docs.mobster.dev/device-setup)
- [Mobster docs: troubleshooting](https://docs.mobster.dev/troubleshooting)

## Try it on your own iPhone

Download Mobster for Mac

## More from the blog

### [Test an iOS app on a real iPhone from your Mac](https://mobster.dev/blog/test-ios-app-on-real-iphone)

17 Oct 2026

### [USB and Wi-Fi for iPhone automation](https://mobster.dev/blog/iphone-automation-usb-vs-wifi)

13 Oct 2026

### [Test your iOS app end to end on a real iPhone with an AI agent](https://mobster.dev/blog/test-ios-app-real-iphone-ai-agent)

27 Oct 2026
