IOS chromium远程调试

Janing

IOS chromium远程调试

参考资料:
IOS使用chrome://inspect 调试页面
github:ios-webkit-debug-proxy
github:ScoopInstaller

提前准备

梯子:这里我的http代理是 127.0.0.1:10809
爱思助手/iTunes

安装scoop

  1. 打开PowerShell
  2. 运行,此处使用的PowerShell是管理员运行,需要添加 -RunAsAdmin参数
1
2
3
4
5
6
7
8
9
# 修改执行策略,选择A全是
set-executionpolicy unrestricted -s cu

#安装scoop
irm get.scoop.sh -outfile 'install.ps1' -Proxy 'http://127.0.0.1:10809'

#执行安装
.\install.ps1 -RunAsAdmin -Proxy 'http://127.0.0.1:10809'

安装 ios_webkit_debug_proxy

1
2
3
4
5
# 尝试安装
scoop bucket add extras

scoop install ios-webkit-debug-proxy

如果出现:Couldn’t find manifest for ‘ios-webkit-debug-proxy’.

1
2
3
4
5
6
7
8
# 卸载
scoop bucket rm extras

# 重装
scoop bucket add extras

# 再次安装 ios-webkit-debug-proxy
scoop install ios-webkit-debug-proxy

安装调试依赖包

1
2
3
4
5
# 全局安装vs-libimobile
npm install vs-libimobile -g

# 全局安装remotedebug-ios-webkit-adapter
npm install remotedebug-ios-webkit-adapter -g

设备配置

启用iOS调试

设置 => Safari 浏览器 => 高级 => web 检查器 => 启用

USB连接手机

USB连接手机,如果弹出信任授权,点击信任

启动监听

cmd运行

1
2
# 指定端口
remotedebug_ios_webkit_adapter --port=9000

浏览器Inspect界面

chrominum浏览器,打开:chrome://inspect/#devices
edge可以用:edge://inspect/#devices

点击Configure

在窗口填写对应端口 localhost:9000

扫码打开对应网页

这时候刷新Inspect页面,可以在Remote Target中看到对应标签页的信息
点击inspect即可

关于微信打开的网页如何调试

  1. 手机微信内点击/扫码打开 http://debugxweb.qq.com/?inspector=true(会跳转到微信首页,跳转后就是开启了调试)
  2. 电脑浏览器打开chrome://inspect/#devices刷新就会看见Remote Target多了一条WebView in com.tencent.mm
  • Title: IOS chromium远程调试
  • Author: Janing
  • Created at : 2025-09-25 20:13:00
  • Updated at : 2025-09-25 20:34:14
  • Link: https://your-domain.com/IOS chromium远程调试/
  • License: This work is licensed under CC BY-NC-SA 4.0.