iOS 测试 Macaca ios 测试,启动模拟器后报错,不能启动应用或浏览器

sun · 2016年10月28日 · 最后由 sun 回复于 2016年11月03日 · 1694 次阅读

Macaca ios 测试,启动模拟器后报错,不能启动应用或浏览器

错误信息如下:

xctest-client.js:156:14 [master] pid:15123 xcodebuild: error: Unable to find a destination matching the provided destination specifier:
{ id:4B6B018B-00E4-4A45-9D33-3FFDAB4DCE43 }

xctest-client.js:164:14 [master] pid:15123 xctest client exit with code: 70, signal: null

1) "before all" hook

responseHandler.js:11:12 [master] pid:15123 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:23:14 [master] pid:15123 Send HTTP Respone to Client: 405 Method Not Allowed

2) "after all" hook

0 passing (5m)
2 failing

1) macaca mobile sample "before all" hook:
Error: timeout of 300000ms exceeded. Ensure the done() callback is being called in this test.

2) macaca mobile sample "after all" hook:
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (node_modules/macaca-wd/wd/lib/utils.js:139:13)
at null. (node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:905:12)

Test completed!

共收到 1 条回复 时间 点赞
sun #1 · 2016年11月03日 Author

以解决,用 7.1 的 xcode 会报错,升级为 8.1 的就正常了

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