Ideviceinstaller does not work with "Failed to connect to lockdownd. Exit".

When I try to use ideviceinstaller, the command fails with the following error message:

"Could not connect to lockdownd. Exiting." 

Examples of commands:

 ideviceinstaller -l ideviceinstaller -i Something.ipa 

I had more than an hour to find a solution, but nothing worked for me:

 Reinstall ideviceinstaller Reinstall libimobiledevice 

Reinstall brew and reinstall both ideviceinstaller again, libimobiledevice It only works if I use sudo, but unfortunately this is not acceptable in my case.

System Settings: MacBookPro with 10.11.5 OSX El Capitan Target Devices: iPhone 5, iPad 2

Note: I installed both Xcode 7.3.1 and Xcode 8 beta 3 on my computer. And I used these commands to switch between them:

 sudo xcode-select -switch /Applications/Xcode-beta.app/ sudo xcode-select -switch /Applications/Xcode.app/ 
+5
source share
7 answers

Meanwhile, I found the answer. This command will add long-lasting privileges to use ideviceinstaller:

 sudo chmod -R 777 /var/db/lockdown/ 
+13
source

Just FYI: updates for macOS, iTunes, and possibly other Apple software (correctly) reset permissions to / var / db / lockdown.

The best solution here is to get the latest libimobiledevice, which has a fix for this particular problem:

 brew uninstall ideviceinstaller brew uninstall libimobiledevice brew install --HEAD libimobiledevice brew link --overwrite libimobiledevice brew install ideviceinstaller brew link --overwrite ideviceinstaller 
+9
source

To fix this, first try:

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

Then

 ideviceinstaller -d -i Something.ipa 
+1
source

I had a lot of problems with ideviceinstaller , so at least I started using cfgutil .

This is the CLI tool of Apple Configurator 2, always up-to-date and reliable, works well with iOS beta versions.

Just download the free app from the App Store: https://itunes.apple.com/hu/app/apple-configurator-2/id1037126344

Launch the application and select "Apple Configurator 2> Install Automation Tools" in the upper left menu.

To install / uninstall applications:

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

To get the ECID, connect your iOS device and run the following command:

 cfgutil list 

Here are the available features: https://pastebin.com/ZzeueLK2

+1
source

If you get this error during brew install --HEAD libimobiledevice :

 "configure: error: Package requirements (libusbmuxd >= 1.1.0) were not met: Requested 'libusbmuxd >= 1.1.0' but version of libusbmuxd is 1.0.10" 

Below commands will solve the problem:

 brew update brew uninstall --ignore-dependencies libimobiledevice brew uninstall --ignore-dependencies usbmuxd brew install --HEAD usbmuxd brew unlink usbmuxd brew link usbmuxd brew install --HEAD libimobiledevice brew install ideviceinstaller 
+1
source

bellow teams solved my problem

 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
source

When you try this command:

 ideviceinstaller -d -i Something.ipa 

You will get a detailed error. In my case, the error is:

 lockdown.c:218 lockdown_check_result(): ERROR: PairingDialogResponsePending 11:28:09 lockdown.c:1012 lockdownd_do_pair(): Pair failure Could not connect to lockdownd. Exiting. 

With a further search this error is not. 2 I found that there was a trust problem in the connected Iphone, so I opened the Iphone and gave it a trusted device, after which the problem was resolved.

0
source

All Articles