我一直面临着使用 Appium 和 Xcode 8 启动检测的问题。我最近知道苹果已经从检测中删除了自动化,因为 Appium(1.5.3) 无法正常工作。
有没有人有解决办法?它会在 Appium v1.6.0-beta1 版本中修复吗?
最佳答案
是的,Xcode 8 不再支持 Instruments/UI 自动化,因此 Appium 将无法使用它。现在它必须支持 XCUITest,它取代了 UI 自动化。
Appium 社区正在开发新的 iOS 驱动程序 - 现在是 XCUITest 驱动程序 .
Advantages of the new XCUITest driver:
- Runs on sims and real devices, including TvOS
- Is able to run on multiple connected devices in parallel
- Is much faster (way faster)
- Less buggy!
- Better control of simulators
- Can dismiss system-level alerts!
Disadvantages:
- Only works on iOS 9.0 and up
- Still no Notification testing
你可以通过克隆 repo 来获得非官方版本:
https://github.com/appium/appium.git2
(如果出现shrink-wrap 错误=> 执行:$ npm shrink-wrap)
更多信息在这里:https://discuss.appium.io/t/ios9-uiautomation-what-is-appium-approach-to-uiautomation-deprecation-by-apple/7319/103
关于Appium 支持 Xcode 8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39502020/