ERROR: Could not connect to lockdownd, error code -8

Hello team,

I am using Appium 1.5.2 and i am occasionally getting “ERROR: Could not connect to lockdownd, error code -8” when i use below commands. Note we are running test in CI so it constantly runs.

ideviceinfo | grep UniqueDeviceID
idevicepair validate

And when it appium tries to run I get below error
Could not connect to lockdownd. Exiting.
An unknown server-side error occurred while processing the command. Original error: Bad app: /Users/xxx/build/xxx.ipa. App paths need to be absolute, or relative to the appium server install dir, or a URL to compressed file, or a special app name.

Although it has worked before, so i doubt it might be code bug, But if someone could give insight that will be helpful.

Thanks
S

anyone who can help?

What version of Mac OS are you running? This issue began for me when I updated to El Capitan 10.11.6 yesterday. Running ideviceinstaller as sudo works, so I’d bet it is due to a security fix in a dependency of ideviceinstaller. Try running these as sudo and confirm. thx.