V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
zehua
V2EX  ›  iOS

被一个问题卡了好多天了,求教一下!

  •  
  •   zehua · 338 天前 · 1703 次点击
    这是一个创建于 338 天前的主题,其中的信息可能已经有所发展或是发生改变。
    ios 里面用到了 wkwebview ,想通过 Mac 的 safari 调试里面的 js 的,按照教程是需要打开手机里面 safari 的 enable web inspector ,可是模拟器 ios 没有这个选项,请教一下这是为啥? ios16.4 macOS13 。
    第 1 条附言  ·  338 天前

    按照 https://webkit.org/blog/13936/enabling-the-inspection-of-web-content-in-apps/ 文档的说法:

    #To enable remote inspection on an iOS device:

    • open the Settings app
    • go to Safari
    • scroll down to Advanced
    • enable the Web Inspector toggle

    我的模拟器里面没有:enable the Web Inspector toggle

    4 条回复    2023-05-17 23:50:57 +08:00
    xtinput
        1
    xtinput  
       338 天前   ❤️ 1
    16.4 之后有个 isInspectable 属性
    zehua
        3
    zehua  
    OP
       338 天前
    @xtinput 设置了也不行,主要是 safari 的设置里面不显示 web inspector 这个开关。
    zehua
        4
    zehua  
    OP
       338 天前
    @xtinput 重启后可以了,感谢🙏
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2291 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 00:42 · PVG 08:42 · LAX 17:42 · JFK 20:42
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.