Safari Web inspector keeps disconnecting

前端 未结 15 957
醉话见心
醉话见心 2021-01-30 10:27

I\'ve Safari 8.0.6 with iOS 8.3 on my iPad, while debugging through Web Inspector on my Mac (10.10.3), the connection keeps on

相关标签:
15条回答
  • 2021-01-30 10:37

    The most recent Safari Technology preview appears to have solved it for me.

    https://developer.apple.com/safari/technology-preview/

    0 讨论(0)
  • 2021-01-30 10:37

    The magic solution worked for me:

    1. Reboot your MAC
    2. Reboot your iPhone
    0 讨论(0)
  • 2021-01-30 10:41

    This plagued me for a long time with very inconsistent behaviour, here are a few things I have found that help, I also wrote a blog post on this here.

    1. Update both mac safari and ios - I have found after having the latest of both versions it started working for me, there could be debugging incompatibilities between Safari's.

    2. Check that web inspector in ios is enabled - It has been known that this setting can be switched off after an upgrade, check in settings > safari > advanced > web inspector.

    3. Check the port you are connected to - I have had mine plugged into a cheap hub / via apple keyboard/monitor hub and found that going directly into the mac works much better.

    4. Are you using a good quality cable? - I have found that better quality / official cables that aren't worn out have better reliability when in debug.

    5. Other notable observations - other people have commented that making sure cookies are enabled in safari, enabling private mode and trying whilst Xcode is open have affected the reliability of this, although I haven't seen this myself it may help others to try.

    0 讨论(0)
  • 2021-01-30 10:42

    For me using a different adapter and cable solved the problem. Every time you connect, it should ask for "Trust this device" like prompt on smartphone, if not then it's the cable/adapter issue.

    0 讨论(0)
  • 2021-01-30 10:45

    Closing XCode first helped for me.

    0 讨论(0)
  • 2021-01-30 10:46

    I know there's a lot of answers already, but I wanted to post because none of them worked for me just now. But, my phone's battery was in "low mode" ... but since I'm plugging it up for development, I didn't think that was a big deal. But, going into settings on my phone and turning off low battery mode fixed my problem. Now safari doesn't disconnect.

    Just wanted to post that in case someone runs into this with a low battery.

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