debugging for ios
charles proxy
For iOS, we are able to debug all app environments from QA test builds to in-market apps using Charles Proxy.
First, we need to install Charles Proxy on our computer (https://www.charlesproxy.com/download/). Then we have to do a few more things to complete set up:
Install the SSL certificate on our machine.
Enable SSL Proxying (enter * as the host).
Enable Transparent HTTP Proxying (enter 8888 as the port).
Enter * in the host field for Recording Settings to make sure all traffic is being recorded.
wifi settings & certificates
Now we have to set up our iOS device to send the traffic to our computer:
On your iOS device, open up your WiFi settings and connect to the same network as your PC.
Select the Configure Proxy option then Manual and enter the IP of your computer with port 8888 and save.
Go to charlesproxy.com/getssl on your iOS device and allow the device on the prompt on your computer.
Go to General -> About -> Certificate trust settings -> enable full trust for your Charles certificate.
ios app traffic
Now we can launch the app we want to test and debug. We should immediately see traffic appearing for the app (config, screens, video player calls, etc). If we drill down through the calls we’re interested in we can view the info for the requests and responses. We can also view this info in Charles in two different ways:
Sequence display where you can view the requests in the order that they occur.
Structure display which shows requests sorted by the host name which can be expanded to show folders.