appium: xcodebuild failed with code 70

Do I have the most recent component updates?

  • I use the most recent available driver/plugin and server versions

Is the component officially supported by the Appium team?

  • I have verified the component repository is present under the Appium organization in GitHub

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I am facing below error message: WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 70. This usually indicates an issue with the local Xcode setup or WebDriverAgent project configuration or the driver-to-platform version mismatch. Consider setting ‘showXcodeLog’ capability to true in order to check the Appium server log for build-related error messages… Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.

Below are the versions of the artifacts: Mac OS version: 13.6.3 iPhone version: 17.2.1 XCode version: 15.1 Appium version: 2.0.0 Node version: 20.10.0 NPM version: 10.2.3

Expected Behavior

Xcode should run WDA on real phone and start using the phone for Automation.

Minimal Reproducible Example

Below are the versions of the artifacts: Mac OS version: 13.6.3 iPhone version: 17.2.1 XCode version: 15.1 Appium version: 2.0.0 Node version: 20.10.0 NPM version: 10.2.3

Use this capability set with Real device

Environment

  • Operating system: 13.6.3
  • Appium server version (output of appium --version): 2.0.0 and 2.4.1 latest
  • Appium driver(s) and their version(s): xcuitest - 5.14.0
  • Appium plugin(s) and their version(s):
  • Node.js version (output of node --version): 20.10.0
  • npm version (output of npm --version): 10.2.3
  • Last component(s) version which did not exhibit the problem: NA
  • Platform and version under test: iphone 17.2.1v
  • Real device or emulator/simulator: Real device

Link to Appium Logs

Message: An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 70. This usually indicates an issue with the local Xcode setup or WebDriverAgent project configuration or the driver-to-platform version mismatch. Consider setting ‘showXcodeLog’ capability to true in order to check the Appium server log for build-related error messages… Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device. 18:52:41 Stacktrace: 18:52:41 UnknownError: An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 70. This usually indicates an issue with the local Xcode setup or WebDriverAgent project configuration or the driver-to-platform version mismatch. Consider setting ‘showXcodeLog’ capability to true in order to check the Appium server log for build-related error messages… Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device. 18:52:41 at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/@appium/base-driver/lib/protocol/errors.js:1118:9) 18:52:41 at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/@appium/base-driver/lib/protocol/protocol.js:491:57) 18:52:41 at runNextTicks (node:internal/process/task_queues:60:5) 18:52:41 at processImmediate (node:internal/timers:449:9)

Further Information

No response

About this issue

  • Original URL
  • State: closed
  • Created 5 months ago
  • Comments: 15 (2 by maintainers)

Most upvoted comments

@ajitesh11 MacBook should be on the latest OS i.e Sonoma and iPhone version should be compatible (17+).