'Could not connect to lockdownd, error code -3. Exiting' - ios_webkit_debug_proxy


#1

‘Could not connect to lockdownd, error code -3.’ Exiting Error message is displayed while running ios_webkit_debug_proxy command. Can you please let me know how to fix this issue ?

Environment:

Appium - 1.13.0 version(Desktop)
Java-Client - 6.1.0
iOS - 10.2.1 (10E1001)
Device - iPad Pro

Command:

isystem$ ios_webkit_debug_proxy -c 00008027-0000486C0C98002EF:9227 -d

ss.add_fd(3)

ss.recv fd=3 len=294

ss.recv fd=3 len=669

ss.add_server_fd(4)

Could not connect to lockdownd, error code -3. Exiting.

ss.remove_server_fd(4)

Unable to attach 00008027-0000486C0C98002EF inspector

isystem$ ios_webkit_debug_proxy -c 00008027-0000486C0C98002EF:27753 -d

ss.add_fd(3)

ss.recv fd=3 len=294

ss.recv fd=3 len=669

ss.add_server_fd(4)

Could not connect to lockdownd, error code -3. Exiting.

ss.remove_server_fd(4)

Unable to attach 00008027-0000486C0C98002EF inspector


#2

@poovaraj

try this commands:

brew uninstall ideviceinstaller
brew uninstall libimobiledevice
brew install --HEAD usbmuxd
brew install --HEAD libimobiledevice
brew link --overwrite libimobiledevice
brew install --HEAD ideviceinstaller
brew link --overwrite ideviceinstaller

sudo chmod -R 777 /var/db/lockdown/


#3

@PramodKarande - still it is showing same error message after running above command. Appium is below log files.

Appium Log:-

[RemoteDebugger] Sending request to: http://localhost:27753/json

[iOS] Attempted to get a list of webview contexts but could not connect to ios-webkit-debug-proxy. If you expect to find webviews, please ensure that the proxy is running and accessible

[iOS] No web frames found.

[iOS] Retrieving contexts and views

[iOS] Selecting by url: true (expected url: ‘http://appium.io’)

[RemoteDebugger] Getting WebKitRemoteDebugger pageArray. Host: ‘localhost’, port: ‘27753’

[RemoteDebugger] Sending request to: http://localhost:27753/json

[iOS] Attempted to get a list of webview contexts but could not connect to ios-webkit-debug-proxy. If you expect to find webviews, please ensure that the proxy is running and accessible

[iOS] No web frames found.

[iOS] Could not find any webviews yet, refreshing/retrying

[iOS] Retrieving contexts and views

[iOS] Selecting by url: true (expected url: ‘http://appium.io’)

[RemoteDebugger] Getting WebKitRemoteDebugger pageArray. Host: ‘localhost’, port: ‘27753’

[RemoteDebugger] Sending request to: http://localhost:27753/json

[iOS] Attempted to get a list of webview contexts but could not connect to ios-webkit-debug-proxy. If you expect to find webviews, please ensure that the proxy is running and accessible

[iOS] No web frames found.

[iOS] Retrieving contexts and views

[iOS] Selecting by url: true (expected url: ‘http://appium.io’)

[RemoteDebugger] Getting WebKitRemoteDebugger pageArray. Host: ‘localhost’, port: ‘27753’

[RemoteDebugger] Sending request to: http://localhost:27753/json

[iOS] Attempted to get a list of webview contexts but could not connect to ios-webkit-debug-proxy. If you expect to find webviews, please ensure that the proxy is running and accessible

[iOS] No web frames found.

[iOS] Could not find any webviews yet, refreshing/retrying

Appium server stopped successfully


#4

@poovaraj
open safari on your device navigate to any website, then fire below command on mac terminal
ios_webkit_debug_proxy -c DeviceUdid:27753 -d

see what o/p you are getting


#5

It is working fine after executing below command

brew update
brew uninstall --ignore-dependencies libimobiledevice
brew uninstall --ignore-dependencies usbmuxd
brew install --HEAD usbmuxd
brew unlink usbmuxd
brew link usbmuxd
brew install --HEAD libimobiledevice
brew install ideviceinstaller

Thank you !