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
相关网址
阅读 2144 · 发布于 2021-11-17
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
Spring Boot 2.3.0 不再包含 Validation阅读 1794
-
软考-系统架构设计师:系统性能设计-阿姆达尔解决方案阅读 3541
-
OpenResty 整合 LuaRocks - Windows10阅读 2767
-
软考-系统架构设计师:CISC 与 RISC阅读 3064
-
Golang 中的注释阅读 1484
-
MySQL 查询重复数据阅读 1420
-
GitHub 搜索技巧阅读 1206
-
走进 Rust:结构体阅读 1962
-
Lombok MapStruct cannot find symbol阅读 758
-
Windows 平台 lua-resty-upload 上传的文件无法打开阅读 1587