user2295884 user2295884 - 6 months ago 551
iOS Question

ideviceinstaller fails with "Could not connect to lockdownd. Exiting."

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

"Could not connect to lockdownd. Exiting."

Example commands:

ideviceinstaller -l
ideviceinstaller -i Something.ipa

I have googled more than an hour to find the solution, however nothing worked for me:

Reinstall ideviceinstaller
Reinstall libimobiledevice

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

System paramereters:
MacBookPro with 10.11.5 OSX El Capitan
Target devices: iPhone 5, iPad 2

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

sudo xcode-select -switch /Applications/
sudo xcode-select -switch /Applications/


Meanwhile I found the answer. This command will add durable privileges to use ideviceinstaller:

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