appium报错:An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: read ECONNRESET

Appium Desktop版本:1.9.0

xcode版本:9.4.1

测试机:iPhone7  11.3系统

问题描述:在xcode上的produc的text运行是可以将WebDriverAgent成功安装到手机上,但用代码去运行时只能将APP安装到手机上随后WebDriverAgent自动被卸载然后appium报错:An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: read ECONNRESET

解决办法:

  将desired_capabilities中的platformName:ios改成platformName:iOS,还有将deviceName填写正确的手机名称

修改完后再次运行,可以成功。

猜你喜欢

转载自www.cnblogs.com/HuangXiaoJuan/p/9687951.html