簡體   English   中英

通過Eclipse啟動時,Appium拋出“ ideviceinstaller”未找到-Java

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

使用最新的Appium v​​1.3.7,我發現與從Eclipse(Java)相比,從GUI啟動Appium的行為很奇怪。

1)PlainNote.app是從Xcode為我的移動設備構建並運行的。 該應用程序已在真正的移動設備上啟動,沒有任何問題。

2)現在,通過Appium GUI,我可以通過提供bundle id,udid等來啟動同一應用程序。根本沒有問題

3)現在,當我從Eclipse啟動應用程序時,問題就來了。 遵循標准的代碼集(例如,所需的上限,新的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 ...

這個問題很奇怪,但是很不幸,我只是被卡住了:(請指導。

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

which ideviceinstaller

如果找到Appium.app,請嘗試手動安裝ideviceinstaller。

brew install --HEAD ideviceinstaller

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM