How to connect iOS simulator to Chrome for debugging

Step 1. connect the Mac to SAP-internet (for saving the hassle of configuring proxy) Step 2. install homebrew $ /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” Step 3. brew install ios-webkit-debug-proxy $ brew install ios-webkit-debug-proxy Step 4. switch back to SAP-corporate connection Step 5. build and launch the cordova app in the iOS simulator Step 6. start ios_webkit_debug_proxy in the command line $ ios_webkit_debug_proxy -f chrome-devtools://devtools/bundled/inspector.html Step 7. launch Chrome and go to http://localhost:9222/

Step 8. copy the url (file:///Users/…CRM_AHN_01.app/www/index.html) then paste it in a new tab and hit enter Step 9. dang dang dang!

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

发表于

我来说两句

0 条评论
登录 后参与评论

扫码关注云+社区

领取腾讯云代金券