首页 > 解决方案 > 由于“原始错误:xcodebuild failed with code 65”,无法启动 WebDriverAgent

问题描述

我有这个问题,当我尝试在IOS手机上使用自动化软件时,在手机上安装应用程序时,“由于xcodebuild失败:xcodebuild failed with code 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', 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

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

其他信息:

  1. MacBook 版本:Catalina 10.15.5 IOS:Iphone 7(版本 14.1) Katalon 版本:7.7.2 Xcode 版本:版本 12.1 (12A7403)

  2. 当我尝试在终端中使用 xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=' 测试时,xcode 不会在我的手机中安装 webdriveragent 并显示 xcodebuild 错误(我将我的 UDID 放在括号内)

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

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

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

标签: iosxcodekatalon-studio

解决方案


推荐阅读