WebDriverAgent on a real iPhone: signing, Developer Mode and the errors
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 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 lists three settings. Apple documents the first.
- Trust the Mac. Open Xcode, connect the phone and accept the “Trust This Computer” prompt on it.
- 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 says the switch appears only if you start pairing the device or paired it to a Mac before.
- 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 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 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 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/ 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 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, 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 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:
- On the phone, open Settings › General › VPN & Device Management.
- Under Developer App, select the Apple Account email that built the runner.
- Tap Trust, then Allow.
The phone must be online, because it verifies the certificate. Apple’s page 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: UnspecifiedThis text is from appium/appium issue 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, 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 deviceThe exact text is from appium/appium issue 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. 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:
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 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 does in its Setup screen, in the order of this guide. It shows a picture of each step on the iPhone.

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, runsiproxybound to127.0.0.1and refuses aniproxythat 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 for the steps for the mobster command. Find each message above by what you see in Troubleshooting.
Get Mobster for Mac. It builds, signs, starts and renews the helper on your iPhone: free 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 takes you to a passing test. Test your iOS app on a real iPhone with an 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)
- Appium XCUITest driver: device preparation
- Appium XCUITest driver: provisioning profile
- Appium XCUITest driver: manual configuration for a generic device
- Appium XCUITest driver: run prebuilt WDA (build-for-testing and test-without-building)
- Appium XCUITest driver: known problems on real devices
- Apple: enabling Developer Mode on a device
- Apple Support: trust a developer app on iPhone
- appium/appium issue 14251: Could not launch WebDriverAgentRunner
- appium/appium issue 6895: Waiting for WebDriverAgent to start on device
- appium/WebDriverAgent issue 587: Timed out while enabling automation mode
- appium/appium-xcuitest-driver issue 2850: No profiles for the xctrunner on Xcode 26
- libusbmuxd on GitHub (iproxy)
- Mobster docs: device setup
- Mobster docs: troubleshooting



