Windows 使用 Chrome 调试运行在 iOS 设备的网页

iOS Chrome Windows About 1,340 words

前提条件

Windows安装iTunesnode.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

相关网址

https://github.com/google/ios-webkit-debug-proxy

https://github.com/lukesampson/scoop-extras

Views: 3,731 · Posted: 2021-11-17

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh