Appium throws “ideviceinstaller” not found when launched through Eclipse - Java

情到浓时终转凉″ 提交于 2019-12-25 16:54:30

问题


I observed a weird behavior for Appium to launch from GUI compared with Eclipse (Java)Using Latest Appium v1.3.7

1) PlainNote.app is built and run from Xcode for my Mobile Device. App is launched on real mobile without any issue.

2) Now, through Appium GUI, I was able to launch the same app by providing bundle id, udid, etc. No issues at all

3) The issue comes now when I'm launching an app from Eclipse. Followed standard set of code (i.e. deisred cap, new iosdriver, etc).

Appium is initated through Eclipse console but upon launching it throws below error

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

4) If I go to terminal and type ideviceinstaller, it successfully launched below details

Prashants-MacBook-Pro:
~ prash$ ideviceinstallerERROR: No mode/operation was supplied.Usage: ideviceinstaller OPTIONSManage apps on iOS devices. -u, --udid UDID Target specific device by its 40-digit device UDID. -l, --list-apps List apps, possible options: -o list_user - list user apps only (this is the default) -o list_system - list system apps only -o list_all - list all types of apps -o xml - print full output as xml plist -i, --install ARCHIVE Install app from package file specified by ARCHIVE. ARCHIVE can also be a .ipcc file for carrier bundles. -U, --uninstall APPID Uninstall app specified by APPID. -g, --upgrade ARCHIVE Upgrade app from package file specified by ARCHIVE. -L, --list-archives List archived applications, possible options: -o xml - print full output as xml plist -a, --archive APPID Archive app specified by APPID, possible options: -o uninstall - uninstall the package after making an archive -o app_only - archive application data only -o docs_only - archive documents (user data) only -o copy=PATH - copy the app archive to directory PATH when done -o remove - only valid when copy=PATH is used: remove after copy -r, --restore APPID Restore archived app specified by APPID -R, --remove-archive APPID Remove app archive specified by APPID -o, --options Pass additional options to the specified command. -h, --help prints usage information -d, --debug enable communication debugging

I'm kindof not sure whats happening here! Am I missing on any configuration or have I duplicated idevicecontroller...

This issue is very weird but unfortunately I'm just stuck :(Please guide.


回答1:


In step #4, where is it finding ideviceinstaller? You can use the following:

which ideviceinstaller

If it finding the Appium.app one, try installing ideviceinstaller manually.

brew install --HEAD ideviceinstaller


来源:https://stackoverflow.com/questions/29979589/appium-throws-ideviceinstaller-not-found-when-launched-through-eclipse-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!