Search code examples
javascriptiosnode.jsappium

Appium ideviceinstaller could not initialize


I have a problem after starting the Appium server as:

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

And trying to connect a device I get the following error.

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 log:

←[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

Did anyone encounter this problem? I use Appium 1.4.8 and is launched on a mac via ssh, using putty.


Solution

  • On OSX (10.11, El Capitan), following part of the advice given on https://github.com/appium/appium/issues/4584 I was able to run past this problem.

    • Install Appium first (from .dmg). In case you have it installed, uninstall and re-install.
    • If don't have it already, install Homebrew (in case you have it installed, skip this).
    • Install ideviceinstaller: brew install --HEAD ideviceinstaller (if you had it installed, first remove with brew uninstall ideviceinstaller)