Debug IOS Device’s Safari browser on Mac

1| Install IOS WebKit debug proxy

brew install ios-webkit-debug-proxy

2| Execute the terminal cmd

sudo ios_webkit_debug_proxy -f chrome-devtools://devtools/bundled/inspector.html

3| If the above cmd fails to work, run the below and execute the above cmd

brew update
brew reinstall --HEAD libimobiledevice
brew reinstall -s ios-webkit-debug-proxy
sudo ios_webkit_debug_proxy -f chrome-devtools://devtools/bundled/inspector.html

4|Open Safari browser in the device, navigate to the target URL and observe if the server is up

http://localhost:9222/

4|Now, open the below link in your desktop Chrome browser

chrome-devtools://devtools/bundled/inspector.html?ws=localhost:9222/devtools/page/1

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s