Rapture In Venice, LLC – John Blanco

:: Freelance iOS and Xamarin Development

Getting the Charles Debugging Proxy to Work with iOS

The Charles Web Debugging Proxy is a near mandatory tool for any developer. Getting it to work with your desktop apps is usually very easy since it just…works. However, for use with mobile, there are a couple tricks.

Configuring for the iOS Simulator

The iOS Simulator is a native app that “imitates” your iTouch device. Because of that, the only configuration you need is to install the Charles certificate. You can do that by downloading the cert and just dragging it on to your iOS Simulator. Alternatively, navigate to the URL https://chls.pro/ssl using Safari on the Simulator.

Lately, there’s a second step to enable Charles for the first time and that is you have to enabled the certificate. To do that, on your devices Settings, navigate to General -> About -> Certificate Trust Settings and make sure “Charles Proxy Custom…” is switched on!

Configuring for an iOS Device

Setup is similar for a device except that the only way to install the certificate is to navigate to the URL https://chls.pro/ssl using Safari on the Simulator and enabling that certificate as described above.

Lastly, since you want to use the Charles Proxy which is on a device other than your iPhone (presumably your laptop), you need to set your Wifi to point at your proxy. In Settings, go to Wi-Fi and select your Wi-Fi network. Scroll down to “HTTP Proxy” and change it to “Manual.” For the server, set it to the IP of your computer and set the port to 8888.

Be sure to turn your Proxy off when you’re done!

  • Print
  • Facebook
  • Twitter

John Blanco

John Blanco is a freelance iOS and Xamarin developer living in Lakewood, CO. He's been developing mobile apps for 10 years, beginning in the medieval days of Java ME and Blackberry, making him the ultimate hipster mobile engineer. Follow him on Twitter!

More Posts

Follow Me:

, , , , , ,

Comments are currently closed.