当前位置:   article > 正文

iOS Appium 真机启动报:Try to remove the WebDriverAgentRunner application from the device if it is install

try to remove the webdriveragentrunner application from the device if it is

报错:

  1. selenium.common.exceptions.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 65
  2. xcodebuild error message:
  3. . 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.

解决方案:

到 https://developer.apple.com/account 网站上获取teamid

在启动的desired_capabilities中添加 xcodeOrgId参数,把teamid赋值上去,如图

  1. caps = {
  2. "platformName": "iOS",
  3. "platformVersion": "14.0",
  4. "deviceName": "iPhone",
  5. "bundleId": "XXXXXXX",
  6. "udid": "a79c20ef6436179b601f9a81ffaa7c",
  7. "xcodeOrgId":"HD123456789",
  8. "app": "path of .ipa"
  9. }

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/333978
推荐阅读
相关标签
  

闽ICP备14008679号