Developing web pages for mobile devices is often difficult. Starting way back with iOS 6, Apple offers a remote web inspector feature in iOS that lets web developers use macOS and OS X Safari Developer Tools to remotely debug web content in mobile Safari on iPad or iPhone. It’s an easy and practical way to debug, optimize and modify your web pages on iOS.
Use the Same Apple ID and iCloud Sync!
Make sure both your iDevice and your Mac are signed in with the same Apple ID and that you toggle ON Safari in iCloud.
For your iDevice: Settings > Apple ID Profile > iCloud > Safari > toggled ON
For your Mac: Apple Menu > System Preferences > iCloud > Safari > Checkmarked
And Check that Safari is the Same Version Too
Make sure Safari on your Mac is the same version as Safari on your iDevice. You may need to update your iOS version or your version of Safari running on your Mac.
Use Web Inspector to debug mobile Safari
1.On your iPad, iPhone or iPod touch, tap Settings > Safari > Advanced and toggle on Web Inspector
2.On your Mac, launch Safari and go to Safari menu > Preferences > Advanced then check “Show Develop menu in menu bar” if you have not done so already
3.Connect your iOS device to your Mac with the USB cable. This is critical–you must connect the devices manually, using a cable. It does not work via WiFi!
4.Now on your iPad, open the website that you want to debug, then, on your mac, open Safari and go to the “Develop” menu. You now see your iDevice that you connected with your Mac. If you do not have any page open on your iDevice, you see a message saying “No Inspectable Applications”.
iDevice Not Showing Up in the Develop Menu in Safari?
- Update Safari on your Mac and iDevice if an update is available
- If you run a beta iOS or macOS version, you may need to run the latest beta on all devices
- Try Another cable and/or port on your Mac. Make sure that cable is a genuine Apple lightning cable or MFI Certified (Made For iPhone)
- Check that Web Inspector is toggled ON. iOS updates sometimes toggle this back to the default OFF setting. So just make sure to check Settings > Safari > Advanced > Web Inspector
- Try toggling werb Inspector Off, wait 10 seconds, and toggle back on
- Try Safari Technology Preview browser instead
- Quit of Safari on your Mac and restart it. See if your Mac’s Safari then recognizes your device and allows debugging
- Check that you are not usign Safari’s Private Browsing mode
- If your iDevice only briefly shows up in Safari’s Develop menu and then disappears