【问题标题】:Appium throws "ideviceinstaller" not found when launched through Eclipse - Java通过 Eclipse - Java 启动时,Appium 抛出“ideviceinstaller”未找到
【发布时间】:2015-07-10 20:31:52
【问题描述】:

与 Eclipse (Java)Using Latest Appium v​​1.3.7 相比,我观察到 Appium 从 GUI 启动的奇怪行为

1) PlainNote.app 是从 Xcode 为我的移动设备构建和运行的。应用在真正的手机上启动没有任何问题。

2) 现在,通过 Appium GUI,我可以通过提供 bundle id、udid 等来启动同一个应用程序。完全没有问题

3) 当我从 Eclipse 启动应用程序时,问题就出现了。遵循标准代码集(即 deisred cap、新 iosdriver 等)。

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

:-[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)如果我去终端并输入ideviceinstaller,它会成功启动以下详细信息

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

我有点不确定这里发生了什么!我是否缺少任何配置,或者我是否复制了 idevicecontroller...

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

【问题讨论】:

    标签: java eclipse mobile appium


    【解决方案1】:

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

    which ideviceinstaller
    

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

    brew install --HEAD ideviceinstaller
    

    【讨论】:

    • 感谢您的帮助。它没有显示上述命令的 appium 路径。但是,我仍然怀疑,由于 Appium 是从 Eclipse 启动的 - 它重定向到 Appium 的 GUI 版本,不幸的是它最终使用了 Appium 提供的 ideviceinstaller。如果我删除 Appium GUI 版本,从终端启动 Appium 服务器,然后从 Eclipse 简单执行(不启动 Appium 服务器),那么它可以完美运行。
    猜你喜欢
    • 2017-05-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-13
    • 1970-01-01
    • 2016-01-10
    • 1970-01-01
    相关资源
    最近更新 更多