在 iOS 设备中运行 appium 时出现错误

问题描述 投票:0回答:1

我正在尝试在我的 ios 设备上运行 Appium。我能够在我的设备上安装 webdriveragent 并且构建正常,但是当我尝试从我的 java 应用程序测试连接时,我收到以下错误。

Could not start a new session. Response code 500. 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. 
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.

这是我用于测试连接性的 Java 代码

    DesiredCapabilities capabilities = new DesiredCapabilities();
    capabilities.setCapability("platformName", "iOS");
    capabilities.setCapability("platformVersion", "16.6.1");
    capabilities.setCapability("deviceName", "");    

    capabilities.setCapability("udid", "00008030-000000000");
    capabilities.setCapability("xcodeSigningId", "iPhone Developer");
    capabilities.setCapability("automationName", "xcuitest");
    
    
     driver = new IOSDriver(new URL("http://0.0.0.0:4723"), capabilities);
java ios appium
1个回答
0
投票

面临同样的问题。有什么办法可以解决这个问题吗?

© www.soinside.com 2019 - 2024. All rights reserved.