Appium error

xcodebuild failed with code 65

The XCUITest driver couldn't build WebDriverAgent, the helper app Appium installs on the device. On real iPhones this is almost always a code-signing problem.

Published

Why this happens

How to fix it

  1. Set `appium:xcodeOrgId`, `appium:xcodeSigningId` (usually `Apple Development`), and a unique `appium:updatedWDABundleId`
  2. Open WebDriverAgent.xcodeproj in Xcode once, pick your team, and build it to the device manually. Xcode's error message is far clearer than Appium's
  3. Enable Developer Mode on the device and trust the developer certificate under Settings > General > VPN & Device Management
  4. Clear Xcode's DerivedData after an Xcode upgrade

Example


              {
  "platformName": "iOS",
  "appium:automationName": "XCUITest",
  "appium:udid": "<device-udid>",
  "appium:xcodeOrgId": "<TEAM_ID>",
  "appium:xcodeSigningId": "Apple Development",
  "appium:updatedWDABundleId": "com.yourcompany.WebDriverAgentRunner"
}