ideviceinstaller icon indicating copy to clipboard operation
ideviceinstaller copied to clipboard

ideviceinstaller -l & -i failed with "Could not connect to lockdownd. Exiting."

Open x-yang11 opened this issue 4 years ago • 8 comments

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。

x-yang11 avatar Nov 04 '19 04:11 x-yang11

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

FredaZhang338 avatar Nov 09 '19 13:11 FredaZhang338

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

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

x-yang11 avatar Nov 13 '19 06:11 x-yang11

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.

YY-Wei avatar Nov 27 '19 04:11 YY-Wei

also got the same issue

lilang-wu avatar Jun 04 '20 12:06 lilang-wu

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

cqllang avatar Jun 08 '20 03:06 cqllang

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

jgrover avatar Oct 30 '20 03:10 jgrover

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.

nikias avatar Oct 30 '20 06:10 nikias

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.

jgrover avatar Nov 13 '20 18:11 jgrover