2015-10-12 198 views
1

我有一個問題開始Appium服務器後:Appium ideviceinstaller無法初始化

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

,並試圖連接設備我碰到下面的錯誤。

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日誌:

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

有沒有人遇到這樣的問題?我使用Appium 1.4.8,並通過ssh使用putty在Mac上啓動。

+0

樣子ideviceinstaller。請使用命令行:「brew install ideviceinstaller --HEAD」來安裝它 – phuongle

+0

我已經完成了並且是相同的。從日誌中我看到,試圖從Appim.app地方使用ideviceinstaller,而不是通過brew –

+0

安裝的那個嘗試命令「ideviceinstaller -help」以確保您的ideviceinstaller正在工作 – phuongle

回答

1

在OSX(10.11,酋長),下面就https://github.com/appium/appium/issues/4584給出的建議我能過去這個問題上運行的一部分。

  • 先安裝Appium(from .dmg)。如果您安裝了它,請卸載並重新安裝。
  • 如果還沒有,請安裝Homebrew(如果安裝了它,請跳過此步驟)。
  • 安裝ideviceinstaller:brew install --HEAD ideviceinstaller(如果你已經安裝它,先用brew uninstall ideviceinstaller刪除)沒有安裝
+1

感謝人,它像任何事情一樣工作。 –

0

請嘗試

sudo xcode-select -switch /Applications/<installed via brew>.app/Contents/Developer/ 
+0

xcode設置正確。問題出自./bash_profile和bashrc。路徑被設置爲僅在bash_profile中的樂器而不是bashrc –