启动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上发布。
答案 0 :(得分:1)
在OSX(10.11,El Capitan)上,按照https://github.com/appium/appium/issues/4584给出的部分建议,我能够解决这个问题。
答案 1 :(得分:0)
请尝试
sudo xcode-select -switch /Applications/<installed via brew>.app/Contents/Developer/