大家有遇到这个问题吗?求助。
macaca mobile sample
responseHandler.js:11:12 [master] pid:58436 Recieve HTTP Request from Client: method: POST url: /wd/hub/session, jsonBody: {"desiredCapabilities":{"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"10.0","deviceName":"iPhone 5s","browserName":"Safari"}}
session.js:47:10 [master] pid:58436 Creating session, sessionId: 16db1408-c417-481a-b55f-79e839a9d7c0.
ipc.js:26:36 [master] pid:58436 electron child process exited with: success!
macaca-ios.js:189:10 [master] pid:58436 Get available devices [{"name":"iPhone 5","udid":"0E4D257D-DB8E-4942-8EAC-985D9146E3E4","state":"Creating","available":true,"runtime":"iOS 10.0"},{"name":"iPhone 5s","udid":"332AC74E-ED98-4E6F-B603-5A9C39C804C2","state":"Creating","available":true,"runtime":"iOS 10.0"},{"name":"iPhone 6","udid":"E68F7FCC-175C-42CA-A59F-45D3C160A9B1","state":"Creating","available":true,"runtime":"iOS 10.0"},{"name":"iPhone 6 Plus","udid":"119F1C9D-43E2-4222-A261-CAC041AE2889","state":"Creating","available":true,"runtime":"iOS 10.0"},{"name":"iPhone 6s","udid":"94A9F3FC-BD7B-40ED-AC93-84415E3FE406","state":"Creating","available":true,"runtime":"iOS 10.0"},{"name":"iPhone 6s Plus","udid":"E835B5EE-E193-4DB8-95C7-1A1EAA389AE8","state":"Creating","available":true,"runtime":"iOS 10.0"},{"name":"iPhone 7","udid":"8D1D18B3-B6D2-4A2A-9FFB-50FA24EAF4E0","state":"Creating","available":true,"runtime":"iOS 10.0"},{"name":"iPhone 7 Plus","udid":"01E92D61-B5F5-4985-BEC6-5B2C4498E306","state":"Creating","available":true,"runtime":"iOS 10.0"},{"name":"iPhone SE","udid":"41F0E4A9-7C14-457E-B718-6468BADB8E5D","state":"Creating","available":true,"runtime":"iOS 10.0"},{"name":"iPad Retina","udid":"DD3BCE48-EF86-40BA-A113-8D5487637F08","state":"Creating","available":true,"runtime":"iOS 10.0"},{"name":"iPad Air","udid":"F35990A0-07EF-4772-90F3-8352089007AD","state":"Creating","available":true,"runtime":"iOS 10.0"},{"name":"iPad Air 2","udid":"ECFAE099-504E-4C39-804C-F2466D0960DB","state":"Creating","available":true,"runtime":"iOS 10.0"},{"name":"Apple TV 1080p","udid":"4799E6C6-196B-43D9-8EA5-3E07D8B24C74","state":"Shutdown","available":true,"runtime":"tvOS 10.0"},{"name":"Apple Watch - 38mm","udid":"4EBC578E-24D1-4222-9230-ADA95BA2691B","state":"Shutdown","available":true,"runtime":"watchOS 3.0"},{"name":"Apple Watch - 42mm","udid":"81D8D928-C9AB-44F1-AA6F-5E96B7834860","state":"Shutdown","available":true,"runtime":"watchOS 3.0"},{"name":"Apple Watch Series 2 - 38mm","udid":"57464091-5E78-4344-8641-13594FAB30D4","state":"Shutdown","available":true,"runtime":"watchOS 3.0"},{"name":"Apple Watch Series 2 - 42mm","udid":"86A35CFC-4B67-44CD-9FA7-906B87684737","state":"Shutdown","available":true,"runtime":"watchOS 3.0"}]
macaca-ios.js:234:12 [master] pid:58436 Shutdown simulator 332AC74E-ED98-4E6F-B603-5A9C39C804C2 failed Error: Command failed: xcrun simctl shutdown "332AC74E-ED98-4E6F-B603-5A9C39C804C2"
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=163):
Unable to shutdown device in current state: ShutdownresponseHandler.js:54:12 [master] pid:58436 Send Error Respone to Client: Error: Simulator 332AC74E-ED98-4E6F-B603-5A9C39C804C2 is not booted.
responseHandler.js:60:14 [master] pid:58436 Error: Simulator 332AC74E-ED98-4E6F-B603-5A9C39C804C2 is not booted.
at sim.isBooted.then.isBooted (/Users/liyongkai/.nvm/versions/node/v6.6.0/lib/node_modules/macaca-ios/lib/macaca-ios.js:251:20)
at process._tickCallback (internal/process/next_tick.js:103:7)
Error: Simulator 332AC74E-ED98-4E6F-B603-5A9C39C804C2 is not booted.
at sim.isBooted.then.isBooted (/Users/liyongkai/.nvm/versions/node/v6.6.0/lib/node_modules/macaca-ios/lib/macaca-ios.js:251:20)
at process._tickCallback (internal/process/next_tick.js:103:7)
1) "before all" hook
responseHandler.js:11:12 [master] pid:58436 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:23:14 [master] pid:58436 Send HTTP Respone to Client: 405 Method Not Allowed2) "after all" hook
macaca mobile sample
responseHandler.js:11:12 [master] pid:58436 Recieve HTTP Request from Client: method: POST url: /wd/hub/session, jsonBody: {"desiredCapabilities":{"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 5s","app":"/Users/liyongkai/Workspace/github.com/macacajs/macaca-test-sample/app/ios-app-bootstrap.zip"}}
session.js:47:10 [master] pid:58436 Creating session, sessionId: 9adb388d-2d0d-49fa-9d91-b590b29bc30a.
helper.js:196:12 [master] pid:58436 Unzipping local app form /Users/liyongkai/Workspace/github.com/macacajs/macaca-test-sample/app/ios-app-bootstrap.zip
CFBundleIdentifier is xudafeng.ios-app-bootstrap
Get bundleId xudafeng.ios-app-bootstrap from plist /tmp/ios-app-bootstrap.app/Info.plist
macaca-ios.js:189:10 [master] pid:58436 Get available devices [{"name":"iPhone 5","udid":"0E4D257D-DB8E-4942-8EAC-985D9146E3E4","state":"Shutdown","available":true,"runtime":"iOS 10.0"},{"name":"iPhone 5s","udid":"332AC74E-ED98-4E6F-B603-5A9C39C804C2","state":"Shutdown","available":true,"runtime":"iOS 10.0"},{"name":"iPhone 6","udid":"E68F7FCC-175C-42CA-A59F-45D3C160A9B1","state":"Shutdown","available":true,"runtime":"iOS 10.0"},{"name":"iPhone 6 Plus","udid":"119F1C9D-43E2-4222-A261-CAC041AE2889","state":"Shutdown","available":true,"runtime":"iOS 10.0"},{"name":"iPhone 6s","udid":"94A9F3FC-BD7B-40ED-AC93-84415E3FE406","state":"Shutdown","available":true,"runtime":"iOS 10.0"},{"name":"iPhone 6s Plus","udid":"E835B5EE-E193-4DB8-95C7-1A1EAA389AE8","state":"Shutdown","available":true,"runtime":"iOS 10.0"},{"name":"iPhone 7","udid":"8D1D18B3-B6D2-4A2A-9FFB-50FA24EAF4E0","state":"Shutdown","available":true,"runtime":"iOS 10.0"},{"name":"iPhone 7 Plus","udid":"01E92D61-B5F5-4985-BEC6-5B2C4498E306","state":"Shutdown","available":true,"runtime":"iOS 10.0"},{"name":"iPhone SE","udid":"41F0E4A9-7C14-457E-B718-6468BADB8E5D","state":"Shutdown","available":true,"runtime":"iOS 10.0"},{"name":"iPad Retina","udid":"DD3BCE48-EF86-40BA-A113-8D5487637F08","state":"Shutdown","available":true,"runtime":"iOS 10.0"},{"name":"iPad Air","udid":"F35990A0-07EF-4772-90F3-8352089007AD","state":"Shutdown","available":true,"runtime":"iOS 10.0"},{"name":"iPad Air 2","udid":"ECFAE099-504E-4C39-804C-F2466D0960DB","state":"Shutdown","available":true,"runtime":"iOS 10.0"},{"name":"Apple TV 1080p","udid":"4799E6C6-196B-43D9-8EA5-3E07D8B24C74","state":"Shutdown","available":true,"runtime":"tvOS 10.0"},{"name":"Apple Watch - 38mm","udid":"4EBC578E-24D1-4222-9230-ADA95BA2691B","state":"Shutdown","available":true,"runtime":"watchOS 3.0"},{"name":"Apple Watch - 42mm","udid":"81D8D928-C9AB-44F1-AA6F-5E96B7834860","state":"Shutdown","available":true,"runtime":"watchOS 3.0"},{"name":"Apple Watch Series 2 - 38mm","udid":"57464091-5E78-4344-8641-13594FAB30D4","state":"Shutdown","available":true,"runtime":"watchOS 3.0"},{"name":"Apple Watch Series 2 - 42mm","udid":"86A35CFC-4B67-44CD-9FA7-906B87684737","state":"Shutdown","available":true,"runtime":"watchOS 3.0"}]
macaca-ios.js:234:12 [master] pid:58436 Shutdown simulator 332AC74E-ED98-4E6F-B603-5A9C39C804C2 failed Error: Command failed: xcrun simctl shutdown "332AC74E-ED98-4E6F-B603-5A9C39C804C2"
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=163):
Unable to shutdown device in current state: ShutdownresponseHandler.js:54:12 [master] pid:58436 Send Error Respone to Client: Error: Simulator 332AC74E-ED98-4E6F-B603-5A9C39C804C2 is not booted.
responseHandler.js:60:14 [master] pid:58436 Error: Simulator 332AC74E-ED98-4E6F-B603-5A9C39C804C2 is not booted.
at sim.isBooted.then.isBooted (/Users/liyongkai/.nvm/versions/node/v6.6.0/lib/node_modules/macaca-ios/lib/macaca-ios.js:251:20)
at process._tickCallback (internal/process/next_tick.js:103:7)
Error: Simulator 332AC74E-ED98-4E6F-B603-5A9C39C804C2 is not booted.
at sim.isBooted.then.isBooted (/Users/liyongkai/.nvm/versions/node/v6.6.0/lib/node_modules/macaca-ios/lib/macaca-ios.js:251:20)
at process._tickCallback (internal/process/next_tick.js:103:7)
3) "before all" hook
responseHandler.js:11:12 [master] pid:58436 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:23:14 [master] pid:58436 Send HTTP Respone to Client: 405 Method Not Allowed
4) "after all" hook4 passing (2m)
4 failing1) macaca mobile sample "before all" hook:
Error: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"10.0","deviceName":"iPhone 5s","browserName":"Safari"})] The environment you requested was unavailable.
at node_modules/macaca-wd/wd/lib/webdriver.js:134: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. (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:974:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)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 . (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:974:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)3) macaca mobile sample "before all" hook:
[init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 5s","app":"/Users/liyongkai/Workspace/github.com/macacajs/macaca-test-sample/app/ios-app-bootstrap.zip"})] The environment you requested was unavailable.
Error: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 5s","app":"app/ios-app-bootstrap.zip"})] The environment you requested was unavailable.
at node_modules/macaca-wd/wd/lib/webdriver.js:134: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. (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:974:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
4) 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 . (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:974:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
Test completed!