由于出现“原始错误:xcodebuild失败,代码为65”,因此无法启动WebDriverAgent

问题描述

我遇到这样的问题:当我尝试在IOS手机上使用自动化软件时,在手机上安装应用程序时,出现“由于xcodebuild失败而无法启动WebDriverAgent:xcodebuild失败,代码为65”错误消息会跳出来

详细信息:

java.util.concurrent.ExecutionException: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: 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
xcodebuild error message:
. 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.
Build info: version: 'unkNown',revision: 'unkNown',time: 'unkNown'
System info: host: 'richard-lum-mac.zii.lan',ip: '192.168.237.97',os.name: 'Mac OS X',os.arch: 'x86_64',os.version: '10.15.5',java.version: '1.8.0_181'
Driver info: driver.version: IOSDriver
remote stacktrace: 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 65
xcodebuild error message:
. 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.
    at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:804:9)
    at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:381:37)
    at runNextTicks (internal/process/task_queues.js:58:5)
    at processImmediate (internal/timers.js:434:9)
Build info: version: 'unkNown',java.version: '1.8.0_181'
Driver info: driver.version: IOSDriver

我正在使用MacBook,它是自动化软件(Katalon)的试用版。我的Xcode构建成功,没有错误消息,自动管理签名已完成。我尝试了所有可以在网上找到的解决方案,但仍然无法解决此问题,我在本网站上找到的关于此问题的最后一个解决方案是在2017年10月,没有可用的解决方案。

其他信息:

    MacBook Pro:Catalina 10.15.5 iOS:Iphone 7(14.1版) Katalon版本:7.7.2 Xcode Ver:版本12.1(12A7403)
  1. 在我尝试在终端中使用xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination'id ='test时,xcode不会在手机中安装webdriveragent并显示xcodebuild错误(我将UDID放在支架内)

  2. 当我尝试使用Xcode在“设备和模拟器”中安装测试应用程序时,它将失败并显示错误消息“无法安装XXX”

  3. 我使用的应用程序与Mac和IOS之间的版本相同,但其中一个来自开发人员,一个来自App Store。在运行Katalon之前,我已经通过App Store在手机中安装了该应用程序。

如果需要,我可以提供更多信息。感谢任何人的帮助。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)