Appium 新人求助!启动 Inspector 提示 Could Not Launch Appium Inspector

wallerson · 2017年08月22日 · 973 次阅读

以下是启动 Inspector 的日志

[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"platformName":"iOS","newCommandTimeout":"7200","app":"/Users/zc/Downloads/ydl.ipa","platformVersion":"8.3","deviceName":"iPhone 6s","bundleId":"com.gotopsports","automationName":"Appium","udid":"5cf3e67358594d1777b7b1deb49141c2af557d85"}}

[MJSONWP] Calling AppiumDriver.createSession() with args: [{"platformName":"iOS","new...

[Appium] Creating new IosDriver session
[Appium] Capabilities:
[Appium] platformName: 'iOS'
[Appium] newCommandTimeout: '7200'
[Appium] app: '/Users/zc/Downloads/ydl.ipa'
[Appium] platformVersion: '8.3'
[Appium] deviceName: 'iPhone 6s'
[Appium] bundleId: 'com.gotopsports'
[Appium] automationName: 'Appium'
[Appium] udid: '5cf3e67358594d1777b7b1deb49141c2af557d85'
[Appium] showIOSLog: true
[BaseDriver] Capability 'newCommandTimeout' changed from string ('7200') to integer (7200). This may cause unexpected behavior
[BaseDriver] Session created with session id: 89916405-f508-49f4-99a0-5ee3909ef1b7

[debug] [iOS] Not auto-detecting udid.
[BaseDriver] Using local app '/Users/zc/Downloads/ydl.ipa'
[debug] [BaseDriver] Copying local zip to tmp dir

[debug] [BaseDriver] Unzipping /var/folders/m1/zrgpst113sb4jtvycbrxvw0m0000gn/T/2017722-1427-1svoe2p/appium-app.zip

[debug] [BaseDriver] Testing zip archive: /var/folders/m1/zrgpst113sb4jtvycbrxvw0m0000gn/T/2017722-1427-1svoe2p/appium-app.zip

[BaseDriver] Unzipped local app to '/var/folders/m1/zrgpst113sb4jtvycbrxvw0m0000gn/T/2017722-1427-1svoe2p/Payload/ydl.app'

[debug] [iOS] Removing any remaining instruments sockets

[debug] [iOS] Cleaned up instruments socket /var/folders/m1/zrgpst113sb4jtvycbrxvw0m0000gn/T/instruments_sock
[debug] [iOS] No language specified. Using default strings
[debug] [iOS] Strings file not found. Looking in 'en.lproj' directory

[debug] [iOS] Parsed app 'Localizable.strings'

[debug] [iOS] Creating instruments
[debug] [UIAuto] Preparing bootstrap code
[debug] [UIAuto] Dynamic bootstrap dir: /Users/zc/Library/Application Support/appium/bootstrap
[debug] [UIAuto] Dynamic env: {"nodePath":"/Applications/Appium.app/Contents/Resources/node/bin/node","commandProxyClientPath":"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-ios-driver/node_modules/appium-uiauto/build/lib/bin/command-proxy-client.js","instrumentsSock":"/var/folders/m1/zrgpst113sb4jtvycbrxvw0m0000gn/T/instruments_sock","interKeyDelay":null,"justLoopInfinitely":false,"autoAcceptAlerts":false,"autoDismissAlerts":false,"sendKeyStrategy":"grouped"}

[debug] [UIAuto] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!
...

[debug] [UIAuto] Dynamic bootstrap path: /Users/zc/Library/Application Support/appium/bootstrap/bootstrap-e73b3c6b53555fa7.js

[debug] [UIAuto] Reusing dynamic bootstrap: /Users/zc/Library/Application Support/appium/bootstrap/bootstrap-e73b3c6b53555fa7.js

[debug] [iOS] Running ios real device reset flow

[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog

[iOSLog] Could not capture device log using libimobiledevice idevicesyslog. Libimobiledevice is probably not installed

[debug] [iOSLog] Attempting iOS device log capture via deviceconsole

[iOS] Could not initialize ideviceinstaller; make sure it is installed and works on your system

[iOS] Could not capture logs from device. Continuing without capturing logs.
[debug] [iOS] Creating iDevice object with udid 5cf3e67358594d1777b7b1deb49141c2af557d85
[debug] [iOS] Couldn't find ideviceinstaller, trying built-in at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/build/libimobiledevice-macosx/ideviceinstaller

[MJSONWP] Encountered internal error running command: Error: Could not initialize ideviceinstaller; make sure it is installed and works on your system
at IosDriver.getIDeviceObj (lib/driver.js:380:15)
at IosDriver.get (lib/driver.js:950:49)
at IosDriver.installToRealDevice$ (lib/driver.js:335:21)
at tryCatch (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as next
at invoke (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at enqueueResult (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:185:17)
at new Promise (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:197:7)
at AsyncIterator.enqueue (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:184:12)
at AsyncIterator.prototype.(anonymous function) as next
at Object.runtime.async (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:209:12)
at IosDriver.installToRealDevice (lib/driver.js:351:16)
at IosDriver.startRealDevice$ (lib/driver.js:309:16)
at tryCatch (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as next
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at run (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:104:47)
at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:115:28
at flush (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/$.microtask.js:19:5)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)

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