Appium 启动不了 appium inspector,Error: Condition unmet after 60203 ms 已折腾多天求助

Nora · 2017年05月14日 · 1037 次阅读

appium launch 正确,但是点击 inspector,模拟器一直启动不了,提示:

The following devices are not in the correct state:

[iOSSim] Simulator not shut down: iPad Pro (undefined, udid: 9.7 inch) is still in state '1b36f21d-89d3-4966-b4bf-a5a24f9239df'

[HTTP] <-- POST /wd/hub/session 500 61468 ms - 180

[MJSONWP] Encountered internal error running command: Error: Condition unmet after 60203 ms. Timing out.

运行 官方的 iOS demo,应该也是这个原因引起的,提示:

WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Condition unmet after 60268 ms. Timing out.

一直卡在这里好久了,今天准备重新解决它,,整了一天,还是没找到解决方法,求高人指点

log 如下:

[iOSSim] Retrieving device name string for Xcode version 7.3.1

[debug] [iOSSim] Getting device string from options: {"deviceName":"iPhone 6","platformVersion":"8.1","forceIphone":false,"forceIpad":false}

[debug] [iOSSim] Final device string is 'iPhone 6 (8.1)'

[debug] [iOS] iOS sim UDID is 55556FE5-7F29-4478-922D-9C6DD7B3D470

[iOSSim] Constructing iOS simulator for Xcode version 7.3.1

[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-app-utils] Getting bundle ID from app

[iOS] Extracted bundleID: io.appium.TestApp from app: /Users/chengjingjing/sample-code/sample-code/apps/TestApp/build/release-iphonesimulator/TestApp.app

[debug] [iOS] Creating instruments
[debug] [UIAuto] Preparing bootstrap code
[debug] [UIAuto] Dynamic bootstrap dir: /Users/chengjingjing/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/gq/94pkv6x513s2_f__4tmgvjhh0000gn/T/instruments_sock","interKeyDelay":null,"justLoopInfinitely":false,"autoAcceptAlerts":false,"autoDismissAlerts":false,"sendKeyStrategy":"oneByOne"}
[debug] [UIAuto] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!
...
[debug] [UIAuto] Dynamic bootstrap path: /Users/chengjingjing/Library/Application Support/appium/bootstrap/bootstrap-2514c0ed4bec331a.js
[debug] [UIAuto] Reusing dynamic bootstrap: /Users/chengjingjing/Library/Application Support/appium/bootstrap/bootstrap-2514c0ed4bec331a.js
[debug] [iOS] User specified default device, letting instruments launch it
[debug] [iOS] Running ios sim reset flow
[debug] [iOS] Killing the simulator
[debug] [iOSSim] Killing all iOS Simulators

[HTTP] --> GET /wd/hub/status {}

[MJSONWP] Calling AppiumDriver.getStatus() with args: []

[HTTP] <-- GET /wd/hub/status - - ms - -

[HTTP] --> GET /wd/hub/status {}
.
.
.
[MJSONWP] Calling AppiumDriver.getStatus() with args: []
[HTTP] <-- GET /wd/hub/status - - ms - -

[iOSSim] The following devices are not in the correct state:

[iOSSim] Simulator not shut down: iPad Pro (undefined, udid: 9.7 inch) is still in state '1b36f21d-89d3-4966-b4bf-a5a24f9239df'

[MJSONWP] Encountered internal error running command: Error: Condition unmet after 60218 ms. Timing out.
at spin$ (lib/asyncbox.js:118:13)
at tryCatch (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/asyncbox/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/asyncbox/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at run (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/asyncbox/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:89:39)
at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/asyncbox/node_modules/babel-runtime/node_modules/core-js/library/modules/

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