Appium [已解决] xcode8 升级到 xcode9 后,编译 appium-gui 版的 wda 时出错

笑哼 for 转转QA · 2017年10月09日 · 最后由 孟德功 回复于 2017年12月14日 · 1421 次阅读

出错原因:'new' is unavailable: Use XCUIElementQuery to create XCUIElement instances.

共收到 4 条回复 时间 点赞

For all of you who can't build WebDriverAgent in Xcode 9 it's because the WebDriverAgent project isn't updated in Appium 1.21. To fix it simply clone the repo from this link https://github.com/facebook/WebDriverAgent and replace it with downloaded WebDriverAgent with Appium.
Also run ./Scripts/bootstrap.sh in this directory.

恒温 回复

thank you

恒温 回复

我把最新的 WebDriverAgent 替代了我原有的 WebDriverAgent,重新整了下,可以获取真机的页面元素了,谢谢哈

我的 mac 系统 10.13.1 xcode 9.0.1 下载最新的 wda 提示: 'RoutingHTTPServer/RoutingConnection.h' file not found
@Lihuazhang

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册