get /Users/wangpeng/.macaca-temp/ios-app-bootstrap.zip from cache
sha:d2e65bba467659ef610b369f2ee599c1
helper.js:193:14 [master] pid:11427 Unzipping local app form /Users/wangpeng/.macaca-temp/ios-app-bootstrap.zip
macaca-ios.js:222:10 [master] pid:11427 Get available devices [{"name":"iPhone 5s","udid":"2F5C437D-D23E-43D3-85C4-3DD199974B2A","state":"Shutdown","available":true,"runtime":"iOS 12.2"},{"name":"iPhone 6","udid":"2EDE4DF4-977B-45DA-ACE8-CA74C00A6058","state":"Shutdown","available":true,"runtime":"iOS 12.2"},{"name":"iPhone 6 Plus","udid":"B9422494-5343-47A9-9966-CE6CA1B51CF4","state":"Shutdown","available":true,"runtime":"iOS 12.2"},{"name":"iPhone 6s","udid":"B70D6339-2A7B-4D10-B9CD-D2AC731C396A","state":"Shutdown","available":true,"runtime":"iOS 12.2"},{"name":"iPhone 6s Plus","udid":"3448D13D-DE24-46DF-A141-104A45E79AAF","state":"Shutdown","available":true,"runtime":"iOS 12.2"},{"name":"iPhone 7","udid":"480B904D-7FBE-44B4-A7F3-FADBA45B7DFE","state":"Shutdown","available":true,"runtime":"iOS 12.2"},{"name":"iPhone 7 Plus","udid":"BB4F8BAA-24DD-4FED-8FA5-4C47532D810B","state":"Booted","available":true,"runtime":"iOS 12.2"},{"name":"iPhone 8","udid":"86FE6BAD-1914-4BA5-A3E9-CA3C0266CA59","state":"Shutdown","available":true,"runtime":"iOS 12.2"},{"name":"iPhone 8 Plus","udid":"11318427-0031-4C5E-9A4F-AD186C160B6F","state":"Shutdown","available":true,"runtime":"iOS 12.2"},{"name":"iPhone SE","udid":"E5E34E7C-CB0F-4879-90D5-2E0D098AFE8E","state":"Shutdown","available":true,"runtime":"iOS 12.2"},{"name":"iPhone X","udid":"051293B5-B66F-4149-B533-35B561FECA27","state":"Shutdown","available":true,"runtime":"iOS 12.2"},{"name":"iPhone Xs","udid":"46B103E0-BA9A-4572-8504-FE390EF1EF02","state":"Shutdown","available":true,"runtime":"iOS 12.2"},{"name":"iPhone Xs Max","udid":"0D5B22DD-F87E-49C2-BBDD-15DDC49F14F3","state":"Shutdown","available":true,"runtime":"iOS 12.2"},{"name":"iPhone Xʀ","udid":"B08886DD-84D1-4ED6-8779-658119D2C96B","state":"Shutdown","available":true,"runtime":"iOS 12.2"},{"name":"iPad Air","udid":"A2671E67-E712-480B-89A8-D90965DEA80C","state":"Shutdown","available":true,"runtime":"iOS 12.2"},{"name":"iPad Air 2","udid":"7D6B56B7-2869-4ADD-BFBE-F8F0433D87CF","state":"Shutdown","available":true,"runtime":"iOS 12.2"},{"name":"Apple TV","udid":"FE42076B-49AE-46A1-901D-FC44543E484D","state":"Shutdown","available":true,"runtime":"tvOS 12.2"},{"name":"Apple TV 4K","udid":"5D109336-8ACD-4DF0-8142-F3539365F37E","state":"Shutdown","available":true,"runtime":"tvOS 12.2"},{"name":"Apple Watch Series 2 - 38mm","udid":"5C19E6A7-8C86-4B72-B0FD-E96AFF9D7980","state":"Shutdown","available":true,"runtime":"watchOS 5.2"},{"name":"Apple Watch Series 2 - 42mm","udid":"04EA127A-412D-4656-970C-987375EDDE96","state":"Shutdown","available":true,"runtime":"watchOS 5.2"},{"name":"Apple Watch Series 3 - 38mm","udid":"387BB219-F030-487B-91AC-BA8334A6E3CA","state":"Shutdown","available":true,"runtime":"watchOS 5.2"},{"name":"Apple Watch Series 3 - 42mm","udid":"56E29884-5C75-4A3E-9B23-59CCBD2577F9","state":"Shutdown","available":true,"runtime":"watchOS 5.2"},{"name":"Apple Watch Series 4 - 40mm","udid":"DAD941D8-912D-466F-9B0F-9B2FEEE1CB84","state":"Shutdown","available":true,"runtime":"watchOS 5.2"},{"name":"Apple Watch Series 4 - 44mm","udid":"D718D658-DDC0-465F-8D96-2366067325B6","state":"Shutdown","available":true,"runtime":"watchOS 5.2"}]
responseHandler.js:56:12 [master] pid:11427 Send Error Respone to Client: Error: Device xjs is not available!
真机已通过usb与电脑相连,从log获取的机型全部都是模拟器
Error: Device xjs is not available!
at IOS.getSimulatorUdid (/usr/local/lib/node_modules/macaca-ios/lib/macaca-ios.js:233:11)
at IOS.getSimulatorUdid.next ()
at onFulfilled (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:65:19)
at processTicksAndRejections (internal/process/task_queues.js:86:5)
单独执行
ios-deploy -c
[....] Waiting up to 5 seconds for iOS device to be connected
[....] Found 0ad7efe57b474fa635fc773e3dcb7*** (D11AP, iPhone 7 Plus, iphoneos, arm64) a.k.a. 'xjs' connected through USB.
ios-deploy
真机已通过usb与电脑相连,从log获取的机型全部都是模拟器 Error: Device xjs is not available! at IOS.getSimulatorUdid (/usr/local/lib/node_modules/macaca-ios/lib/macaca-ios.js:233:11) at IOS.getSimulatorUdid.next ()
at onFulfilled (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:65:19)
at processTicksAndRejections (internal/process/task_queues.js:86:5)
配置文件如下:
for full set of documentation, please refer to:
#
1. Initialization option
desiredCapabilities: platformName: 'iOS' deviceName: 'xjs' app: 'https://npmcdn.com/ios-app-bootstrap@latest/build/ios-app-bootstrap.zip'
2. Crawling option
crawlingConfig: strategy: 'ocr' platform: 'ios' deviceType: 'iPhone 7 Plus' triggers:
单独执行 ios-deploy -c [....] Waiting up to 5 seconds for iOS device to be connected [....] Found 0ad7efe57b474fa635fc773e3dcb7*** (D11AP, iPhone 7 Plus, iphoneos, arm64) a.k.a. 'xjs' connected through USB.