Appium抛出“ideviceinstaller”通过Eclipse - Java启动时找不到 [英] Appium throws "ideviceinstaller" not found when launched through Eclipse - Java

查看:273
本文介绍了Appium抛出“ideviceinstaller”通过Eclipse - Java启动时找不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我观察到,与Eclipse(Java)相比,Appium推出的一个奇怪行为使用Latest Appium v​​1.3.7



1)PlainNote.app已构建并运行从我的移动设备的Xcode。应用程序是在真正的移动上发布的,没有任何问题。



2)现在,通过Appium GUI,我可以通过提供包ID,udid等来启动相同的应用程序。没有问题



3)当我从Eclipse启动应用程序时,问题现在出现。按照标准的代码集(即deisred cap,new iosdriver等)。



通过Eclipse控制台启动Appium,但是在启动时它会抛出错误

 : -  [36minfo [39m:[debug]找不到ideviceinstaller,尝试内置在/Applications/Appium.app/Contents/Resources/ node_modules / appium / build / libimobiledevice-macosx / ideviceinstaller 

[31merror [39m:无法初始化ideviceinstaller;确保已安装并在您的系统上运行

4)如果我去终端并键入ideviceinstaller,它成功地启动了以下细节

  Prashants-MacBook-Pro:
〜prash $ ideviceinstallerERROR:没有提供模式/操作.Usage:ideviceinstaller OPTIONSManage iOS设备上的应用程序。 -u, - UDID目标特定设备由其40位数设备UDID。 -l,--list-apps列出应用程序,可能的选项:-o list_user - 仅列出用户应用程序(这是默认值)-o list_system - 仅系统应用程序-o list_all - 列出所有类型的应用程序--o xml - 打印完整输出为xml plist -i,--install ARCHIVE从ARCHIVE指定的软件包文件安装应用程序。 ARCHIVE也可以是运营商捆绑的.ipcc文件。 -U, - 卸载由APPID指定的APPID卸载应用程序。 -g, - 由ARCHIVE指定的软件包文件升级ARCHIVE升级应用程序。 -L,--list-archives列出归档应用程序,可能的选项:-o xml - 打印完整输出为xml plist -a,--archive APPID由APPID指定的存档应用程序,可能的选项:-o uninstall - 在制作后卸载该软件包存档-o app_only - 仅存档应用程序数据-o docs_only - 仅归档文档(用户数据)-o copy = PATH - 完成后将应用程序归档复制到目录PATH -o remove - 仅在使用copy = PATH时有效:remove复制后-r,--restore APPID由APPID -R指定的归档应用程序,--remove-archive APPID删除APPID -o指定的应用程序归档,--options将附加选项传递给指定的命令。 -h,--help打印使用信息-d,--debug启用通信调试

我是不知道这里发生了什么!我错过任何配置,或者我复制了idevicecontroller ...



这个问题很奇怪,但不幸的是我只是卡住了:(请指导。

解决方案

在第4步中,它在哪里找到ideviceinstaller?您可以使用以下内容:

 哪个ideviceinstaller 

如果找到Appium.app一个,尝试手动安装ideviceinstaller。

  brew install --HEAD ideviceinstaller 
pre>

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.

解决方案

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

这篇关于Appium抛出“ideviceinstaller”通过Eclipse - Java启动时找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆