Git Product home page Git Product logo

ios-remote-inspector's Introduction

This is a simple iPhone app to access the Webkit Remote Inspector running on an iOS device.

It allows you to load a URL in a UIWebView, then it enables the webkit inspector using private APIs as described here and here.

It then opens port 55555 on your iPhone or iPad and proxies the TCP connections to the internal web inspector, which wouldn't be accessible otherwise.

HOWTO

  • Clone this project, and open it in XCode (4.3 required).
  • Run it on your device
  • Type the address of the page you need to debug on the device
  • Open Safari (it must be Safari, other browsers won't work) and visit http://your-phone:55555.
  • Alternatively, you may open the Safari Bonjour network browser, you will find the service advertised there as "Remote Webkit Inspector".
  • Shake your phone to access the toolbar: from there you can go back to the recent sites list, or reload the page.

HACKING

If you find a bug or have a useful improvement, send me a pull request!

CREDITS

All the credit goes to the people who discovered the private APIs (linked above), and to the awesome CocoaAsyncSocket library for providing an extremely convenient way of doing asynchronous networking.

NOTES

I have the feeling that the remote debugging feature will soon be officially supported by Apple. At least I hope so, as it's a great feature for mobile web development.

It should be superfluous, but let's say it anyway: don't even try to submit this to the App Store, it won't be accepted as it uses private APIs.

ios-remote-inspector's People

Contributors

brainlock avatar

Stargazers

Frank Ramos avatar

Watchers

Frank Ramos avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.