Question

I need to debug an HTML app on ipad. I used to be able to connect ipad by USB cable to my mac and it would show in the "Develop" menu in Safari. I have two ipads now - one with iOS 6 and another with iOS 7. The iOS 6 one is showing correctly and I can access the web inspector from my mac. iOS 7 ipad is not showing in the "Develop" menu.

I have the latest version of iOS installed (version 7.1) and the latest version of Safari (7.0.2) on Maverick.

Any suggestions are welcome.

Was it helpful?

Solution 6

After all these years, I finally found out what the problem was! Apparently, Safari version on the Mac needs to be the same or newer than the version on the iPad. If iPad has a newer version than Mac, then it won't be visible. If Mac has the same or newer version, then iPad is visible and can be debugged.

I wish Apple had documented this anywhere - would have saved loads of time for a lot of people.

OTHER TIPS

Enable web inspector on your iOS device by following these steps:

iOS Device > Settings app > Safari > Advanced > Web Inspector

This setting allows you to connect to safari on your desktop.

I know this is a little late. I had this same issue and figured I would post how I got it to work in my case just in case it helps anyone in the future. I enabled it on the iPad and it didn't show. I tried closing Safari on the iPad, disconnecting and reconnecting the cable and neither worked. It ended up for me being really simple, I just quit of Safari on my laptop and restarted it and Safari then recognized the iPad and allowed me to debug. This may not work for every case but it did for me, hope it helps.

edit: just a note, I had the iPad plugged in with web inspector enabled when I restarted Safari.

In my case I was running iOS 11 BETA on the iPhone, and was trying to access from Safari 10 (current stable version). I have installed Safari 11 BETA, and now it is working as expected.

So in general: Make sure you are running the latest version of Safari. And if you are testing on iOS BETAs, you can download Safari Betas & Safari Technology previews from here (Thank you for the link @Jacob Ford).

You also need to enable web inspector from the device.

Open the settings app, select safari, select advance and then turn on web inspector.

ref: http://www.spiraltrack.com/blog/how-debug-iphone-and-ipad-web-applications-using-safari.

Using a genuine Apple lightning cable (instead of a fake one) solved my problem.

One more tip to try - after trying many of the above suggestions I turned off "Sync with this iPhone over Wi-Fi" in iTunes.

Voila! Got my iPhone into the Develop menu!

(for context, this is in Mojave 10.14.6, iOS 13.1.3, Safari 13.0.3)

I just had to toggle the web inspector on and off on the device I was trying to connect and it showed up under Safari's develop menu:

iOS Device > Settings app > Safari > Advanced > Web Inspector

If you already have enabled web inspector on your iOS device by following these steps and still it is not showing you can try just disabling and then again enable web Inspector in device's Safari browser.

iOS Device > Settings app > Safari > Advanced > Web Inspector

Had the same issue after updating to Safari 13 and Xcode 11.3 on macOS Catalina. For me the following change brought the iOS device back to Safari's Develop menu:

  1. Connect the device via USB
  2. Start Xcode and go to menu "Window > Devices and Simulators"
  3. Select the device
  4. Check the "Connect via network" option

I've tried all the above but the only thing that works for me is to put iphone/ipad in airplane mode and then unplug/plug in the lighting cable a few times while keeping the develop menu open, once it shows up you can then turn off airplane mode

Another gotcha for the basket: If you've another OS running in a virtual machine that you've forgotten about then the iPad can end up connected to that and hence invisible to Safari on the Mac.

Additional go to:

Device Settings -> Safari -> Private Browsing = OFF

For me, the problem was the different OS versions between the iPad and the iMac. I updated the iPad with the latest OS (iOS 11.2.2 at the time of this writing), but the iMac was under El Capitan (10.11.6) macOS. Once I updated the iMac to High Sierra (10.13.2) everything worked correctly.

I've found that Simulator is always in Safari's Develop menu if it's already running when Safari launches, and Simulator is never in the menu if Safari is launched first.

So you need to restart your Safari again.

That's Simulator 11.2 (comes with Xcode 9.1), Safari 11.0.3 and macOS 10.13.3

Similar to what BernieSF said, with a little more detail from my specific scenario. I was getting ready to upgrade my laptop to High Sierra to try and solve this, but I'm glad I didn't have to.

I have been trying to solve this for some time now, so maybe my situation will apply to someone else. The problem was the version of Safari I had installed on my older Macbook Air.

Symptoms: All the appropriate settings were enabled, and when I plugged in my phone to the USB cable, it would show up in the Develop tab, and then quickly disappear.

Setup: iPhone 7 on 11.3.1 and Macbook Air(3,2) on 10.12. On the Air, Safari was version 10.1.

I read in an Apple thread that for iOS 11, I needed to have Safari 11, but I had no option to update Safari in the App Store. There was a system update available, and the update to 10.13 available, but not Safari.

Solution:

  1. I did the system updates (not the update to 10.13)
  2. After my computer rebooted, the App Store then offered me an update to Safari 11.1.1 and I installed that

Voila! It now works!

I had this issue with iOS 13.2.3 on both macOS Mojave and Catalina.

When I disconnected the iPhone from the Wi-Fi and only connected it via the cable the dropdown in Safari showed the iPhone.

The solution for me was: In iTunes click the sync-settings button and enabling and then disabling the "Sync with this iPhone over Wi-Fi".

After that the iPhone showed up again in Safari's developer menu.

I experienced the same issue today with iOS 13 and Mac OS 10.14 (Mojave).

What fixed it for me was simply installing a required Update in MacOS.

However, it is not an update that is installed via system preferences but only via a dialog that appears when trying to connect the devices.

Unfortunately the dialog appeared behind all other windows and could not be tabbed to. Thus I did not see it at all until I closed all other windows.

Regarding the dialog itself - here some information from Apple support:

https://support.apple.com/en-us/HT208831

In my case, I was using iOS beta version.

Xcode > Window > Devices and Simulators > Connect via network

then I can see error messages.

"The current device configuration is unsupported. This iPhone X (Model A1865, A1901, A1902,…" "To run on this device, please update to a version of Xcode that supports iOS 13.6. You can download Xcode from the Mac App Store or the Apple Developer website."

Oh yeah.

Another thing to check is Build Settings > Signing > Code Signing Identity

Make sure both Release and Debug are set to iOS Developer

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top