首次集成Appium自动测试IOS遇见的问题

来源:互联网 发布:c语言源程序的扩展名 编辑:程序博客网 时间:2024/06/06 01:06
一、A new session could not be created. Details: Appium's IosDriver does not support xcode version 8.3.3.
Apple has deprecated UIAutomation. Use the "XCUITest" automationName capability instead.
解决方案:
在--capability添加automationName=XCUITest参数
二、AssertionError: Message: An unknown server-side error occurred while processing the command.
Original error: Unknown device or simulator UDID: '***'

解决方案:
Appium使用idevice_id(libimobiledevice的一部分)来确定设备的可用性
brew install libimobiledevice --HEAD
三、AssertionError: Message: An unknown server-side error occurred while processing the command. Original error: 
Could not initialize ios-deploy make sure it is installed (npm install -g ios-deploy) and works on yoursystem
解决方案:
安装ios-deploy
npm install -g ios-deploy

原创粉丝点击