windows使用chrome調試ios webView


包含safari和App
如果安裝失敗,直接刪除C:\Users\Administrator\scoop 重新安裝即可

安裝scoop

windows下的安裝源搜索工具,有點類似centos下的yum、ubuntu下的apt

PowerShell下執行一下命令:

Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')

或者簡化命令

iwr -useb get.scoop.sh | iex

失敗的話,刪除之前安裝的重新多安裝幾次即可。

安裝成功后如圖所示:

PS C:\Users\Administrator> Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
Initializing...
Downloading scoop...
Extracting...
Creating shim...
Downloading main bucket...
Extracting...
Adding ~\scoop\shims to your path.
'lastupdate' has been set to '2021-05-07T14:03:27.4187897+08:00'
Scoop was installed successfully!
Type 'scoop help' for instructions.

 

 

 

安裝 iOS WebKit Debug Proxy
ios_webkit_debug_proxy又名iwdp,通過websocket連接代理來自usbmuxd守護程序的請求,從而允許開發人員在真實和模擬的iOS設備上將命令發送到MobileSafari和UIWebViews。

scoop bucket add extras
scoop install ios-webkit-debug-proxy

PS C:\Users\Administrator> scoop bucket add extras
Checking repo... ok
The extras bucket was added successfully.

PS C:\Users\Administrator> scoop install ios-webkit-debug-proxy
Installing 'ios-webkit-debug-proxy' (1.8.8) [64bit]
ios-webkit-debug-proxy-1.8.8-win64-bin.zip (3.5 MB) [===============] 100%
Checking hash of ios-webkit-debug-proxy-1.8.8-win64-bin.zip ... ok.
Extracting ios-webkit-debug-proxy-1.8.8-win64-bin.zip ... done.
Linking ~\scoop\apps\ios-webkit-debug-proxy\current => ~\scoop\apps\ios-webkit-debug-proxy\1.8.8
Creating shim for 'ios_webkit_debug_proxy'.
'ios-webkit-debug-proxy' (1.8.8) was installed successfully!

 

 

 

使用iwdp
終端輸入:

ios_webkit_debug_proxy -f chrome-devtools://devtools/bundled/inspector.html

瀏覽器訪問:http://localhost:9221

 進一步點擊:

右鍵復制藍色地址,並將chrome-devtools改為devtools(因為后續chrome協議有調整),
回車訪問即可,如:
devtools://devtools/bundled/inspector.html?ws=localhost:9222/devtools/page/3

其它
更換 scoop 源

scoop config SCOOP_REPO https://gitee.com/squallliu/scoop
scoop update

安裝scoop報錯
使用“1”個參數調用“DownloadString”時發生異常:“未能解析此遠程名稱: 'raw.githubusercontent.com'”

打開hosts文件(C:\Windows\System32\drivers\etc),在最后一行添加如下內容:

199.232.68.133 raw.githubusercontent.com

再次運行安裝Scoop命令,至此 Scoop安裝完成。

 

參考

https://scoop.sh/
https://gitee.com/squallliu/scoop
http://static.kancloud.cn/idcpj/python/912343


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM