Windows 使用 Chrome 调试运行在 iOS 设备的网页
iOS Chrome Windows 大约 1340 字前提条件
Windows
安装iTunes
、node.js
iTunes
不要下载Windows App Store
中的,单独下载安装包安装。地址:https://support.apple.com/zh-cn/HT210384
安装 scoop
查看PowerShell
版本,低于5.1
需升级。
Get-Host | Select-Object Version
修改执行策略
set-executionpolicy unrestricted -s cu
安装scoop
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
安装 ios_webkit_debug_proxy
scoop bucket add extras
scoop install ios-webkit-debug-proxy
安装 remotedebug-ios-webkit-adapter
npm install remotedebug-ios-webkit-adapter -g
在 iOS 设置 Safari 中启用远程调试
设置 => Safari 浏览器 => 高级 => web检查器 => 启用
让计算机信任 iOS 设备
将iOS
设备连接电脑,必须点击信任,并打开iTunes
,以确保手机连接。
命令行中运行
ios-webkit-debug-proxy
将自动随之运行,无需单独启动。
remotedebug_ios_webkit_adapter --port=9000
Chrome
chrome://inspect/#devices
Edge
edge://inspect/#devices
配置 9000 端口
在Discover network targets
选项添加localhost:9000
配置。
可能出现的异常
extras
没安装成功。
Couldn't find manifest for 'ios-webkit-debug-proxy'.
移除重装。
scoop bucket rm extras
保证能连接raw.githubusercontent.com
。
Checking repo... 'https://github.com/lukesampson/scoop-extras' doesn't look like a valid git repository
Error given:
fatal: unable to access 'https://github.com/lukesampson/scoop-extras/': OpenSSL SSL_read: Connection was reset, errno 10054
可以在host
文件中指定IP
地址。
199.232.68.133 raw.githubusercontent.com
相关网址
阅读 3094 · 发布于 2021-11-17
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
Elasticsearch 轻量搜索 _search 和 q=阅读 3539
-
IDEA HTTP Client 抽取处理脚本到公共 JS 文件阅读 226
-
Spring Boot Thymeleaf 时间处理类阅读 97
-
Kubernetes Pod 控制器 DaemonSet阅读 1042
-
Vue 重置 data 数据阅读 490
-
Java G1 垃圾收集器开启字符串去重阅读 1986
-
Linux 升级 OpenSSL 版本阅读 5061
-
Docker 部署 OpenResty阅读 2706
-
Docker 部署 Jenkins阅读 1304
-
Linux 之 -bash pecl command not found 的解决方法阅读 4183