Macaca ios-deploy BundleId XCTestWD.XCTestWD does not exist.

phil · 2018年07月23日 · 最后由 phil 回复于 2018年07月24日 · 1765 次阅读
iOS 真机环境下macaca run -d ./macaca-test/wechat.test.js
  1. 上午还可以正常运行,下午就跑不起来了 报错信息:
>> Macaca server started
>>

>>

>>

ios-deploy
BundleId XCTestWD.XCTestWD does not exist.
>> XCTestWD version: 1.3.31
BundleId XCTestWD.XCTestWD does not exist.
>> XCTestWD version: 1.3.31

共收到 1 条回复 时间 点赞
phil #1 · 2018年07月24日 Author

我也是服气~~~

今天早上啥都没动,到公司第一件事就是运行昨天的命令

很神奇的可以正常运行了!!!!

是工具太累了吗?

➜  macaca-nodejs-boilerplate git:(master) ✗ macaca run -d ./macaca-test/wechat.test.js
>> Macaca server started
>>

>>

>>

ios-deploy
BundleId XCTestWD.XCTestWD does not exist.
>> XCTestWD version: 1.3.31
BundleId XCTestWD.XCTestWD does not exist.
>> XCTestWD version: 1.3.31
BundleId XCTestWD.XCTestWD does not exist.
>> XCTestWD version: 1.3.31
BundleId XCTestWD.XCTestWD does not exist.
>> XCTestWD version: 1.3.31
>> XCTestWD version: 1.3.31
>> XCTestWD version: 1.3.31
>> XCTestWD version: 1.3.31
>> XCTestWD version: 1.3.31

  Error: 2018-07-23 19:06:29.504 ios-deploy[43112:339392] [ !! ] Timed out waiting for device.

      at ChildProcess.<anonymous> (/usr/local/lib/node_modules/macaca-ios/node_modules/ios-device/lib/helper.js:46:17)
      at emitTwo (events.js:126:13)
      at ChildProcess.emit (events.js:214:7)
      at maybeClose (internal/child_process.js:925:16)
      at Socket.stream.socket.on (internal/child_process.js:346:11)
      at emitOne (events.js:116:13)
      at Socket.emit (events.js:211:7)
      at Pipe._handle.close [as _onclose] (net.js:557:12)

>>     1) "before all" hook

>>

>>

>>   0 passing (5m)

>>   1 failing

>>

>>   1) "before all" hook:
     Error: [init({"platformName":"iOS","udid":"4deebe4xxxxxxxxxx","bundleId":"com.tencent.xin"})] The environment you requested was unavailable.
      at /Users/philzhang/Documents/WorkSpace/macaca-nodejs-boilerplate/node_modules/macaca-wd/wd/lib/webdriver.js:128:15
      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.<anonymous> (node_modules/macaca-wd/node_modules/request/request.js:1219:14)
      at IncomingMessage.<anonymous> (node_modules/macaca-wd/node_modules/request/request.js:1167:12)
      at endReadableNT (_stream_readable.js:1064:12)
      at _combinedTickCallback (internal/process/next_tick.js:138:11)
      at process._tickCallback (internal/process/next_tick.js:180:9)


>>


>> Test completed!
➜  macaca-nodejs-boilerplate git:(master) ✗ macaca run -d ./macaca-test/wechat.test.js
>> Macaca server started
>>

>>

>>

ios-deploy
BundleId XCTestWD.XCTestWD does not exist.
>> XCTestWD version: 1.3.31
>> xctestwd start with port: 8001
>>     1. 小程序测试

>>       ✓ should Enter 小程序 (19456ms)

>>

>>

>>   1 passing (1m)

>>

>> Test completed!
➜  macaca-nodejs-boilerplate git:(master) ✗
phil 关闭了讨论 07月24日 10:47
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册