美文网首页
chrome调试wkwebview

chrome调试wkwebview

作者: 张钻研 | 来源:发表于2018-08-30 12:16 被阅读0次

总体试下来,不太好用,步骤如下

  1. 安装ios-webkit-debug-proxy
    brew install ios-webkit-debug-proxy
    
  2. 用usb连接真机,打开一个web页面
  3. 启动ios-webkit-debug-proxy
    ios_webkit_debug_proxy -f chrome-devtools://devtools/bundled/inspector.html
    
  4. 在chrome浏览器中输入localhost:9221, 选择设备,一般会设备有对应的端口号,比如localhost:9222
  5. 右键点击对应的网页连接复制到另外一个tab就可以进行调试了

如果在运行第三步的时候出错,可以试下一下步骤

brew install autoconf
brew install automake
brew upgrade libimobiledevice --HEAD
brew postinstall libimobiledevice

参考 iOS用chrome调试webview

相关文章

网友评论

      本文标题:chrome调试wkwebview

      本文链接:https://www.haomeiwen.com/subject/pnprwftx.html