Debugging mobile Safari in iOS 8 and iOS 9

前端 未结 4 1530
别跟我提以往
别跟我提以往 2020-12-09 09:26

After switching to new versions of iOS, I\'ve not been able to debug my web app from OS X Safari to my iPhone Safari browser. My iPhone shows up but I get no options.

<
相关标签:
4条回答
  • 2020-12-09 09:37

    Debugging iOS 8 mobile Safari requires desktop Safari 7.1, which is only available with OS X 10.9.5 or greater.

    What you need to do is:

    1. Update (via Apple menu->Software Update) to OS X 10.9.5 (if you haven't already)
    2. Once you've done that, you should see the Safari 7.1 in the list of pending updates

    Once done, you should see be able to debug as usual via desktop Safari.

    0 讨论(0)
  • 2020-12-09 09:39

    Though this is an old question, it should be mentioned somewhere in the answer that you actually have to enable remote inspection on the iPhone first before anything will show up.

    Go to: Settings --> Safari --> Advanced --> Web Inspector

    0 讨论(0)
  • 2020-12-09 09:53

    Even with OS X 10.9.5 and Safari > 7.1 I wasn't able to debug mobile Safari on an iPad with iOS 8.

    It turned out that I had previously rejected a dialog on the iPad that asked whether to "trust this computer". The following steps helped:

    1. Power down device.
    2. Open iTunes on computer.
    3. Connect device to computer.
    4. Respond to computer question to let device access iTunes.
    5. Turn on device.

    It will ask you to confirm to trust the computer again. Accept and you should be able to debug as usual.

    0 讨论(0)
  • 2020-12-09 10:00

    Also for iOS 9:

    On your mobile device under Settings -> Safari -> Fraudulent Website Warning = OFF [default = ON]

    0 讨论(0)
提交回复
热议问题