2016-08-19 25 views
5

當我嘗試使用ideviceinstaller,該命令失敗,出現以下錯誤信息:ideviceinstaller失敗,並顯示「無法連接到鎖定。退出」。

"Could not connect to lockdownd. Exiting." 

示例命令:

ideviceinstaller -l 
ideviceinstaller -i Something.ipa 

我用Google搜索了一個多小時,找到解決方案,但是毫無效果對我來說:

Reinstall ideviceinstaller 
Reinstall libimobiledevice 

重新安裝啤酒,再重新安裝都ideviceinstaller,libimobiledevice 它只有在使用sudo的情況下才有效,但不幸的是,在我的情況下不可接受。

系統paramereters: 的MacBookPro與10.11.5 OSX埃爾卡皮坦 目標設備:iPhone 5,iPad 2的

注: 我已經安裝兩者的Xcode 7.3.1和的Xcode 8對β3我的電腦。而使用這些命令在它們之間切換:

sudo xcode-select -switch /Applications/Xcode-beta.app/ 
sudo xcode-select -switch /Applications/Xcode.app/ 

回答

12

同時,我找到了答案。此命令將增加耐用權限才能使用ideviceinstaller:

sudo chmod -R 777 /var/db/lockdown/ 
+0

哇,這是我所有問題的根源,它背後隱藏着一些對有經驗的同事來說毫無意義的錯誤。但是這固定了它。謝謝!!!!!! – Matthew

1

爲了解決這個問題,首先嚐試:

usbmuxd --force-exit 
sudo usbmuxd -f -v 

然後

ideviceinstaller -d -i Something.ipa 
8

僅供參考:更新的MacOS,iTunes和其他可能的蘋果軟件會(正確地)重置的/ var/DB /鎖定的權限。

最好的解決方案是,以獲得最新libimobiledevice,這對這一特定問題的修復程序:

brew uninstall ideviceinstaller 
brew uninstall libimobiledevice 
brew install --HEAD libimobiledevice 
brew link --overwrite libimobiledevice 
brew install ideviceinstaller 
brew link --overwrite ideviceinstaller 
0

波紋管的命令解決我的問題

brew uninstall ideviceinstaller 
brew uninstall libimobiledevice 
brew install --HEAD libimobiledevice 
brew unlink libimobiledevice && brew link libimobiledevice 
brew install --HEAD ideviceinstaller 
brew unlink ideviceinstaller && brew link ideviceinstaller 
sudo chmod -R 777 /var/db/lockdown/ 
0

我有很多問題ideviceinstaller太,所以至少我已經開始使用。

這是Apple Configurator 2的CLI工具,始終保持最新且可靠,適用於iOS測試版。

只需從App Store下載免費的應用程序:https://itunes.apple.com/hu/app/apple-configurator-2/id1037126344

開始,然後應用程序中選擇從左上角菜單中的「蘋果配置2>安裝自動化工具」。

安裝/卸載應用程序:

cfgutil --ecid $ECID remove-app $BUNDLE_ID_OF_INSTALLED_APP; 
cfgutil --ecid $ECID install-app $PATH_TO_IPA_OR_APP_FOLDER; 

要獲取ECID,連接iOS設備和運行以下命令:

cfgutil list 

下面是可用的功能:https://pastebin.com/ZzeueLK2

相關問題