Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
prezihomework opened this issue Jul 27, 2016 · 14 comments
Closed

Comments

@prezihomework
Copy link

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

Note:
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/Xcode-beta.app/
sudo xcode-select -switch /Applications/Xcode.app/

@renatosc
Copy link

renatosc commented Aug 1, 2016

same here.

@linkin-xiao
Copy link

I meet the same problem, and I guess it's the Xcode 8 lead to this, because I installered Xcode 8 yesterday!
And before that I use ideviceinstaller a lot time!!!

@zhaohanzhiyou
Copy link

Same here.. Anyone has any clue? I already uninstalled the Xcode Beta but still not working. THX

@rohitgargfzr
Copy link

I am also facing same issue, can somebody please help?

@irodkin
Copy link

irodkin commented Aug 25, 2016

Look here: #47

@prezihomework
Copy link
Author

Thanks KorranForce!
This solution worked perfectly:
sudo chmod -R 777 /var/db/lockdown/

I am closing this ticket then.

@mi2pankaj
Copy link

This works Thanks

@vchimev
Copy link

vchimev commented Apr 6, 2017

If the suggestion above doesn't do the trick, here is an alternative:

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

@pellet
Copy link

pellet commented Aug 23, 2018

I need to run this chmod command on each reboot, is there a way around this to have the permission ok across boots?

@pragpatel
Copy link

If the suggestion above doesn't do the trick, here is an alternative:

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

This one really works

@ankitguptatest
Copy link

Still didn't work on any above options

@Winning117
Copy link

Winning117 commented Nov 27, 2019

If the above doesn't work I was able to get it to work by doing the following:

First disconnect all iOS devices then run this:

brew uninstall libimobiledevice
brew install --HEAD libimobiledevice
brew link --overwrite libimobiledevice
brew install --HEAD  ideviceinstaller
brew link --overwrite ideviceinstaller
sudo rm -rf /var/db/lockdown/*

Plug your iOS device back in and wait for the "Trust" prompt to pop up. Click "Trust" and then run sudo chmod -R 777 /var/db/lockdown/. That solved it for me.

Source: https://stackoverflow.com/a/48694852/7487335

@jiaxw32
Copy link

jiaxw32 commented May 12, 2020

If the suggestion above doesn't do the trick, here is an alternative:

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

great ! work for me.

@harrain
Copy link

harrain commented Aug 10, 2020

If the above doesn't work I was able to get it to work by doing the following:

First disconnect all iOS devices then run this:

brew uninstall libimobiledevice
brew install --HEAD libimobiledevice
brew link --overwrite libimobiledevice
brew install --HEAD  ideviceinstaller
brew link --overwrite ideviceinstaller
sudo rm -rf /var/db/lockdown/*

Plug your iOS device back in and wait for the "Trust" prompt to pop up. Click "Trust" and then run sudo chmod -R 777 /var/db/lockdown/. That solved it for me.

Source: https://stackoverflow.com/a/48694852/7487335

Excellent! This is working!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests