Appium appium 1.7.2+xcode9.2 启动报错为什么

啊啊 · 2018年04月01日 · 最后由 王智强 回复于 2018年04月24日 · 1403 次阅读

[MJSONWP] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65". Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.

共收到 7 条回复 时间 点赞

你的 WebDriverAgent 的文件不正确,下载一个兼容的,替换一下这个问题就解决了

Ambers 回复

下载最新的替换还是不行

你用的是 xcode 自带的苹果手机模拟器还是真机来测试的,我想起来我遇见这个问题是因为我链接真机的时候报的这个错,替换了 WebDriverAgent 的包后,我一直用的是 xcode 自带的模拟器,之后没出过这个问题,你可以尝试使用 xcode 自带模拟器进行测试

尝试一下这样是否可以启动 WDA,通过 iTerm

  1. 进入 appium 对应的WebDriverAgent文件
  2. 执行xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=真机的udid' test
Ambers 回复

模拟器上没有问题的

sini 回复

Testing failed:
Early unexpected exit, operation never finished bootstrapping - no restart will be attempted。 这个错误

把 WDA 删除 重新 build 一下 然后再设置里面点击信任这个 WDA 实在不行就把 WDA 删除 重新下一个新的 WDA 编译一下

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