ideviceinstaller fails with "Could not connect to lockdownd. Exiting."
<p>When I try to use ideviceinstaller, the command fails with the following error message:</p>

<pre><code>"Could not connect to lockdownd. Exiting."
</code></pre>

<p>Example commands:</p>

<pre><code>ideviceinstaller -l
ideviceinstaller -i Something.ipa
</code></pre>

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

<pre><code>Reinstall ideviceinstaller
Reinstall libimobiledevice
</code></pre>

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

<p><strong>System paramereters:</strong>
MacBookPro with 10.11.5 OSX El Capitan
Target devices: iPhone 5, iPad 2</p>

<p><strong>Note:</strong>
I have installed both Xcode 7.3.1 and Xcode 8 beta 3 on my computer. And used these commands to switch between them:</p>

<pre><code>sudo xcode-select -switch /Applications/Xcode-beta.app/
sudo xcode-select -switch /Applications/Xcode.app/
</code></pre>