一、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 your system
解决方案:
安装ios-deploy
npm install -g ios-deploy
本文介绍了在使用Appium进行iOS自动化测试时遇到的三个常见问题及其解决方案:不支持的Xcode版本、未知设备或模拟器UDID以及ios-deploy初始化失败。提供了具体的步骤以帮助读者解决这些问题。
2953

被折叠的 条评论
为什么被折叠?



