Appium 无法 Launch Appium Inspector

唐僧之妈 · 2013年11月14日 · 最后由 Monkey 回复于 2013年11月15日 · 2658 次阅读

大家好,我是最近才开始学习使用 Appium 的,在 Launch Appium Inspector 时遇到了下面的问题,Google 一些无法 Launch 的,但都不是我得这个原因,大家遇到的没?

Appium 弹出下面的提示:
Could Not Launch Appium Inspector
Could not start a new session

Environment:
OS:OS X version 10.9
iOS Simulator: iPhone/iOS 7.0.3
Appium: version 0.11.3

Log:
debug: Appium request initiated at /wd/hub/status
info: Responding to client with success: {"status":0,"value":{"build":{"version":"0.11.3","revision":"4a0cb4cc9e974d8d584ae98fef41eee0c067c081"}}}
debug: Request received with params: {}
debug: Appium request initiated at /wd/hub/sessions
debug: Request received with params: {}
debug: Appium request initiated at /wd/hub/session
debug: Request received with params: {"desiredCapabilities":{}}
debug: No device id or app, not installing to real device.
debug: Creating instruments
debug: Appium request initiated at /wd/hub/status
debug: Request received with params: {}
debug: Appium request initiated at /wd/hub/status
debug: Request received with params: {}
error: Instruments socket client never checked in; timing out
error: Instruments socket client never checked in; timing out
error: Instruments did not launch successfully, failing session
error: Failed to start an Appium session, err was: Error: Instruments did not launch successfully--please check your app paths or bundle IDs and try again

GET /wd/hub/status 200 1ms - 144b
info: Responding to client with success: {"status":0,"value":[]}
GET /wd/hub/sessions 200 1ms - 32b
info: Using local app from command line: /Users/kingson/Study/appium-0.11.4/sample-code/apps/TestApp/build/TestApp.app
info: Creating new appium session 7606926d-4d56-49d7-994e-9f67e350e00f
info: Removing any remaining instruments sockets
info: Cleaned up instruments socket /tmp/instruments_sock
warn: Could not parse plist file at /Users/kingson/Study/appium-0.11.4/sample-code/apps/TestApp/build/TestApp.app/en.lproj/Localizable.strings
info: Forcing use of iphone
info: Parsed app Info.plist
info: Wrote new app Info.plist with device type
info: instruments is: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
info: [INSTSERVER] Instruments socket server started at /tmp/instruments_sock
info: Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate /Users/kingson/Study/appium-0.11.4/sample-code/apps/TestApp/build/TestApp.app -e UIASCRIPT /Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/uiauto/bootstrap.js -e UIARESULTSPATH /tmp/appium-instruments/
info: And extra without-delay env: {"DYLD_INSERT_LIBRARIES":"/Applications/Appium.app/Contents/Resources/node_modules/appium/build/iwd/InstrumentsShim.dylib","LIB_PATH":"/Applications/Appium.app/Contents/Resources/node_modules/appium/build/iwd"}
info: And launch timeout: 90000ms
info: [INST STDERR] 2013-11-14 15:18:38.704 ScriptAgent[73271:2e07] CLTilesManagerClient: initialize, sSharedTilesManagerClient

info: [INST STDERR] 2013-11-14 15:18:38.706 ScriptAgent[73271:2e07] CLTilesManagerClient: init

info: [INST STDERR] 2013-11-14 15:18:38.706 ScriptAgent[73271:2e07] CLTilesManagerClient: reconnecting, 0xd68a7d0

info: [INST] 2013-11-14 07:18:39 +0000 Default: Instruments shell user: kingson
info: Responding to client with success: {"status":0,"value":{"build":{"version":"0.11.3","revision":"4a0cb4cc9e974d8d584ae98fef41eee0c067c081"}},"sessionId":"7606926d-4d56-49d7-994e-9f67e350e00f"}
GET /wd/hub/status 200 1ms - 199b
info: Responding to client with success: {"status":0,"value":{"build":{"version":"0.11.3","revision":"4a0cb4cc9e974d8d584ae98fef41eee0c067c081"}},"sessionId":"7606926d-4d56-49d7-994e-9f67e350e00f"}
GET /wd/hub/status 200 1ms - 199b
info: Instruments exited with code 1 and trace dir undefined
info: Cleaning up appium session
info: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Instruments did not launch successfully--please check your app paths or bundle IDs and try again)","origValue":"Instruments did not launch successfully--please check your app paths or bundle IDs and try again"},"sessionId":null}
POST /wd/hub/session 500 90181ms - 342b

info: [INST] 2013-11-14 07:19:51 +0000 Stopped: Script was stopped by the user
Instruments Trace Complete (Duration : 89.468323s; Output : /Applications/Appium.app/Contents/Resources/node_modules/appium/instrumentscli26.trace)

info: [INSTSERVER] Instruments exited with code 0

error: Instruments did not launch successfully, failing session

共收到 7 条回复 时间 点赞

appium 是哪个版本?会不会是那个 xcode 的问题 @monkey

#1 楼 @lihuazhang Appium 是 0.11.3 Xcode 是 5.0.2

#2 楼 @xiaomayi0323 试试看最新的那个版本 0.11.4

感觉不用 Inspector 都会报错的样子,提供的样例能跑吗?AppPath 选了没?

#4 楼 @guo 样例可以正常运行,AppPath 没有选,直接 Launch 就可以了

#3 楼 @lihuazhang 我安装了最新的 0.11.4,Inspector 终于可以启动起来了

#6 楼 @xiaomayi0323 对的,0.11.4 是好的。之前不知道为嘛。。= =

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