This repo explains how to setup Charles Proxy on your Mac and use it as a proxy for your iOS device.
- Download and install Charles Proxy on your Mac.
- Open Charles Proxy on your Mac.
- Make sure that your Mac and your iOS device are connected on the same local network
- On your iOS device, go to Settings > Wi-Fi
- Click on the info icon at the right of your currently connected network
- In the HTTP Proxy section, go to Configure proxy > Manual
- Fill the server field with the local IP address of your Mac (generally something like 192.168.x.y).
- Fill the port field with 8888.
- Open Safari on your iOS device and go to any URL. You should see a popup from Charles Proxy on your Mac asking you to allow your iOS device to use the Proxy.
- Click on "Allow".
Do the following setps if you want to debug HTTPS requests.
- On your iOS device, open Safari and enter this url.
- You should see an alert asking you if you want to install the certificate. Install it.
- Go to Settings > General > Profiles.
- Find the installed profile. Click on it and enable it.
- Go to Settings > General > About > Certificate Trust Testings and enable the installed profile.