
The user interface is easy to understand without much experience. See Charles’ FAQ page for troubleshooting help. Note: If you don’t see any events, you may have not granted permissions or may have another proxy already set up. Charles will only run for 30 minutes in trial mode, so you may need to restart it throughout this tutorial. Double-click the DMG file and drag the Charles icon to your Applications folder to install it.Ĭharles Proxy isn’t free, but there’s a free 30-day trial. Then, download the latest version of Charles Proxy for Mac (v4.6.1 at the time of writing).

You configure your simulator or iOS device to pass all networking requests and responses through Charles Proxy, so you’ll be able to inspect and even change data midstream to test how your app responds. It’s even more difficult when you’re talking to other systems over a network.įortunately, Charles Proxy can make network debugging much easier.Ĭharles Proxy sits between your app and the internet. Let’s face it - we’ve all written code that doesn’t work correctly, and debugging can be hard. The downside is obviously your Safari browser on your PC will behave quicker than on the actual device (especially in regard to javascript performance) it displays plugins and shows fonts that may not be available on the actual iPhone OS a lack of multi-touch support and "snapping" to columns while scrolling no auto-rotation no multi-touch/pinch-zoom widgets will look different etc.Update note: Irina Galata updated this tutorial for Xcode 12, Swift 5 and iOS 14. You can also browse iPhone-specific versions of websites that catch user-agent strings directly from your PC. The upside of this is that it's quick, it works on both Windows and Mac, and you don't need the iPhone SDK installed. With this enabled, you can go to Develop > User Agent, and change the user-agent string to the device you want your browser to report to the web server as.īy resizing the window to the appropriate width, you can emulate what the site will look like on the iPhone.

If you have Safari on your computer, you can enable the "Develop" menu under Preferences > Advanced > Show Develop Menu in Menu Bar.
