1

我正在尝试在真实设备中启动 appium,但每次我运行时都会收到此错误 - selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command。原始错误:由于 xcodebuild 失败,无法启动 WebDriverAgent:“xcodebuild failed with code 65”。确保您遵循https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md上的教程。如果已安装 WebDriverAgentRunner 应用程序,请尝试从设备中删除它并重新启动设备。

当我使用模拟器运行时它工作正常,我已经在特定路径中安装了 Webdriver 代理并完成了所有必要的更改,但仍然没有运气

以下是我在我的应用程序中使用的desiredCapability:

desired_caps['udid'] = '7d8dc98c8078f72de8b28fe3934664f70ebc97dc'
desired_caps['platformName'] = 'iOS' 
desired_caps['platformVersion'] = '12.1'
desired_caps['automationName'] = 'xcuitest' 
desired_caps['deviceName'] = 'Apple’s iPad'
desired_caps['browserName'] = 'Safari' 
desired_caps['xcodeOrgId'] = 'DWW94C2HRU'
desired_caps['newCommmandTimeout'] = '15000' 
desired_caps['xcodeSigningId'] = "iPhone Developer"  
driver = webdriver.Remote('localhost:4723/wd/hub', desired_caps) 
driver.get("github.com/")

当我运行此命令时 - x codebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=' 测试 以验证一切是否正常,它卡在命令行中 - 2019-04-09 07:58:21.311906+0530 WebDriverAgentRunner-Runner[489:69209] ServerURLHere-> http://192.168.1.4:8100 <-ServerURLHere 在此处查看 cmd 行截图

但我确实根据 appium 教程看到了这一点-测试套件“所有测试”开始于 2017-01-23 15:49:12.585 测试套件“WebDriverAgentRunner.xctest”开始于 2017-01-23 15:49:12.586 测试套件“ UITestingUITests' 开始于 2017-01-23 15:49:12.587 测试用例'-[UITestingUITests testRunner]' 开始。t = 0.00s 在 2017-01-23 15:49:12.588 开始测试 t = 0.00s 设置

4

0 回答 0