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 -l & -i failed with "Could not connect to lockdownd. Exiting." #122

Open
x-yang11 opened this issue Nov 4, 2019 · 8 comments

Comments

@x-yang11
Copy link

x-yang11 commented Nov 4, 2019

I met with "Could not connect to lockdownd. Exiting." when I used ideviceinstaller -l or ideviceinstaller -i xxx.ipa

Environment

Mac OS : 10.15
iOS Devices:iPhone XR(13.0),iPhone Xs Max(12.3)
Software:

  • Xcode 11
  • libimobiledevice & ideviceinstaller: build from the latest code in master branch

Description

$ ideviceinstaller -l
Could not connect to lockdownd. Exiting.
$ ideviceinstaller -d -l
...
11:34:04 idevice.c:387 internal_connection_receive_timeout(): ERROR: usbmuxd_recv_timeout returned -35 (Resource temporarily unavailable)
...
idevice_info & idevicescreenshot works well.

P.S

for ideviceinstaller -l and -i command
macos 10.14.5 & iPhone 7(iOS 12.1.3)works well
macos 10.14.6 & iPhone 8(iOS 11.4.1)did not work
macos 10.15 & iPhone 6(iOS 10.3.3)works well only if I execute 'sudo chmod -R 777 /var/db/lockdown/ '

I think maybe the new OS version of mac leads to the result。

@FredaZhang338
Copy link

难道不是因为手机没解锁?

@x-yang11
Copy link
Author

难道不是因为手机没解锁?

从表现来说不可能。不至于蠢成这样来提issue……

@YY-Wei
Copy link

YY-Wei commented Nov 27, 2019

I also met the issue: "Could not connect to lockdownd. Exiting."
when I used " ideviceinstaller -l or ideviceinstaller -i xxx.ipa。"

Environment
Mac OS : 10.15
iOS Devices:iPhone XR(13.2.3)
Software:

Xcode 11
libimobiledevice & ideviceinstaller: build from the latest code in master branch
Description
$ ideviceinstaller -l

Could not connect to lockdownd. Exiting.

@lilang-wu
Copy link

also got the same issue

@cqllang
Copy link

cqllang commented Jun 8, 2020

same issue,
Mac OS : 10.15.4
Is the suspect the reason for system version 10.15 or above?

@jgrover
Copy link

jgrover commented Oct 30, 2020

I got ideviceinstaller -l to work on Mac 10.15.7. It's not pretty but here's what I had to do:

  • Disable SIP (I found that when SIP is enabled, chmod doesn't work against /var/db/lockdown starting in 10.15.7).
  • sudo rm -rf /var/db/lockdown
  • sudo mkdir /var/db/lockdown
  • sudo chmod -R 777 /var/db/lockdown

@nikias
Copy link
Member

nikias commented Oct 30, 2020

I got ideviceinstaller -l to work on Mac 10.15.7. It's not pretty but here's what I had to do:

  • Disable SIP (I found that when SIP is enabled, chmod doesn't work against /var/db/lockdown starting in 10.15.7).
  • sudo rm -rf /var/db/lockdown
  • sudo mkdir /var/db/lockdown
  • sudo chmod -R 777 /var/db/lockdown

I don't know what you are doing
but seems like you're using a really old libimobiledevice build. You DO NOT have to disable SIP and you DO NOT have to do any chmod. It just talks to the usbmuxd that is already installed by default on macOS.

@jgrover
Copy link

jgrover commented Nov 13, 2020

I'm running the latest libimobiledevice (v1.3.0). Good to know that this is not expected behavior. Maybe it's just something fluky with my setup. Unfortunately turning off SIP and chmod was the only way I could get rid of the lockdown error.

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

7 participants