Closed
Description
The problem
On trying to install the app on the real device using following command
ideviceinstaller -i /Users/rgupte/Downloads/DavitaRX_POD_DEV_AUTOMATION.ipa
it displays
Could not connect to lockdownd. Exiting
Environment
•Desktop OS/version used to run Appium: Mac OS Sierra 10.12.5
Node.js version (unless using Appium.app|exe):
Mobile platform/version under test:10.3.3
Real device or emulator/simulator:Real device iPad Pro 9.7 inch
Appium CLI or Appium.app|exe: 1.2.1
Details
Not able to install the app using iDeviceInstaller.
Link to Appium logs
Code To Reproduce Issue [ Good To Have ]
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
imurchie commentedon Oct 3, 2017
This generally means you need to get a more recent version of
libimobiledevice
. You can get the latest withbrew install libimobiledevice --HEAD
.Rnij commentedon Oct 3, 2017
Thanks imurchie.
Does that mean I need to excute following commands:
brew uninstall libimobiledevice
brew install libimobiledevice --HEAD
Do I also need to uninstall and install ideviceinstaller with the follwoiung command before I uninstall libimobiledevice.
brew uninstall ideviceinstaller
brew install ideviceinstaller
imurchie commentedon Oct 3, 2017
Sorry, I think I misspoke. You should install the latest
ideviceinstaller
.Can you post logs for the error? I did not think that Appium used
ideviceinstaller
anymore because of issues with iOS 10+.Rnij commentedon Oct 3, 2017
oh ok. Should I execute the following command for getting latest ideviceinstaller.
brew uninstall ideviceinstaller
brew install ideviceinstaller
I am not able to launch the app on real device using Appium as it gives me a warning device_id is not installed. Attached are the Appium logs. Hence I was trying to see if ideviceinstaller can directly install the app on my real device with the command
ideviceinstaller -i /Users/rgupte/Downloads/DavitaRX_POD_DEV_AUTOMATION.ipa
it displays
Could not connect to lockdownd. Exiting
Attached is a screenshot for above too. Please let me know if any other information is needed. I have been stuck with this for a long time and would really appreciate if I get any help. Thanks.

appium-server-logs.txt
Rnij commentedon Oct 5, 2017
After installing latest ideviceinstaller I was able to install the app using the command ideviceinstaller -i /Users/rgupte/Downloads/DavitaRX_POD_DEV_AUTOMATION.ipa
But when I try to launch it through appium, it gives me a message The 'idevice_id' program is not installed. Error: Unknown device or simulator UDID.
imurchie commentedon Oct 5, 2017
idevice_id
is part oflibimobiledevice
. If you have the latter installed it ought to be available.What happens when you run
idevice_id -l
manually?Rnij commentedon Oct 5, 2017
On running idevice_id -l manually, it displays the udid of the connected iPad.

imurchie commentedon Oct 5, 2017
How are you launching appium? Does it have access to the PATH?
Rnij commentedon Oct 5, 2017
I am using appium desktop app version 1.2.1 to start the server. How can I find out if appium has access to the PATH?
saikrishna321 commentedon Oct 5, 2017
@Rnij from the above comments i see you have lockdown issue when installing IPA. Please try the below and see if it solves
Rnij commentedon Oct 5, 2017
I will try that and let you know.
Rnij commentedon Oct 6, 2017
@saikrishna321 I ran the commands that you had mentioned but it still gives lockdown error on trying to install using ideviceinstaller.
ideviceinstaller -i /Users/rgupte/Downloads/DavitaRX_POD_DEV_AUTOMATION.ipa
it displays
Could not connect to lockdownd. Exiting
I tried launching the app through Appium after running the commands you had mentioned and it gives a new error now. attached is the screenshot of the error.
[MJSONWP] Encountered internal error running command: Error: Could not install app: 'Command 'ios-deploy --id 21dbb46b868acba3a5bc53832e2b571f9611b547 --uninstall --bundle /var/folders/d4/jvmfnng92x12hpg4x82wslzsmk7fjt/T/201795-19163-1sgs5fe.e2l5ak0529/Payload/iOSTablet.app' exited with code null'
appium-server-logs.txt
Can you advise what might be the problem? Thanks.
Rnij commentedon Oct 9, 2017
@imurchie @saikrishna321
Thanks a lot for all the help and suggestions. I was able to finally successfully launch and install the app on a real device.
4 remaining items