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” 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/… then paste it in a new tab and hit enter Step 9. dang dang dang!




0 条评论
登录 后参与评论