Appium ideviceinstaller无法初始化

时间:2015-10-12 14:30:47

标签: javascript ios node.js appium

启动Appium服务器后出现问题:

/Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/bin/appium.js

尝试连接设备时出现以下错误。

A new session could not be created. (Original error: Could not initialize ideviceinstaller; make sure it is installed and works on your system) (33)

Appium日志:

←[36minfo←[39m: [debug] Couldn't find ideviceinstaller, trying built-in at /Applications/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller
←[31merror←[39m: Could not initialize ideviceinstaller; make sure it is installed and works on your system
←[31merror←[39m: Failed to start an Appium session, err was: Error: Could not initialize ideviceinstaller; make sure it is installed and works on your system
←[36minfo←[39m: [debug] Error: Could not initialize ideviceinstaller; make sure it is installed and works on your system
←[36minfo←[39m: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Could not initialize ideviceinstaller; make sure it is installed and works on your system)","orig Value":"Could not initialize ideviceinstaller; make sure it is installed and works on your system"},"sessionId":null}
←[36minfo←[39m: ←[37m<-- POST /wd/hub/session ←[39m←[31m500←[39m←[90m 1252.938 ms - 300←[39m ←[90m←[39m

有没有人遇到过这个问题?我使用Appium 1.4.8并使用ssh通过putty在Mac上发布。

2 个答案:

答案 0 :(得分:1)

在OSX(10.11,El Capitan)上,按照https://github.com/appium/appium/issues/4584给出的部分建议,我能够解决这个问题。

  • 首先安装Appium(from .dmg)。如果已安装,请卸载并重新安装。
  • 如果还没有,请安装Homebrew(如果已安装,请跳过此步骤。)
  • 安装ideviceinstaller:brew install --HEAD ideviceinstaller(如果已安装,请先使用brew uninstall ideviceinstaller删除)

答案 1 :(得分:0)

请尝试

sudo xcode-select -switch /Applications/<installed via brew>.app/Contents/Developer/