ios 设备调试
ios 设备调试ios 设备设置windows电脑调试mac电脑调试ios 设备设置设置—>Safari浏览器—>高级—>将网页检查器打开windows电脑调试安装 itunes ,.NET Framework 4.5,git打开power shell(windows自带),运行命令安装 scope:Invoke-Expression (New-Object System.Net
·
ios 设备调试
ios 设备设置
- 设置—>Safari浏览器—>高级—>将网页检查器打开
- 手机打开safari浏览器,浏览网页
windows电脑调试
- 安装 itunes ,.NET Framework 4.5,git,重启电脑
- 打开power shell(不是cmd,windows自带),运行命令
- 安装 scope:
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
# 或者
iwr -useb get.scoop.sh | iex
# 国内镜像源可以安装这个
iwr -useb https://gitee.com/glsnames/scoop-installer/raw/master/bin/install.ps1 | iex
scoop config SCOOP_REPO 'https://gitee.com/glsnames/Scoop-Core'
scoop update
# 如果之前命令失败了请先运行以下命令,再运行之前命令
Set-ExecutionPolicy RemoteSigned -scope CurrentUse
- 安装调试插件(需要git,nodejs)
scoop bucket add extras
scoop install ios-webkit-debug-proxy
npm install remotedebug-ios-webkit-adapter -g
- 允许防火墙
- 连接iphone,信任电脑
- 开启调试:
remotedebug_ios_webkit_adapter --port=9000
# 执行成功后会显示
remotedebug-ios-webkit-adapter is listening on port 9000
- 打开 Chrome 浏览器,进入 chrome://inspect/#devices 页面,在 Discover network targets 选项添加 localhost:9000 配置。刷新页面,这时页面中会出现 ‘Remote Target’ 列表,该列表展示了 iPhone 中打开的页面,点击 inspect,即可进行调试
mac电脑调试
- MAC Safari→偏好设置→高级→打开”在菜单栏中显示“开发”菜单
- 连接iphone,信任电脑
- 打开safari,调试对应网页
更多推荐
已为社区贡献1条内容
所有评论(0)