If we want to debug the application on the phone, we can forward the request to the PC, where Charles can capture it.

Charles set

Top menu bar ->

Proxy
Proxy Settings
Proxies

Mobile phone set

In order to forward the phone’s request to the PC, we need to ensure that the phone and the PC are on the same LAN. So they have to connect to the same Wi-Fi.

Then, turn on your phone’s Wi-Fi Settings:

Next, set the HTTP Proxy to your PC’s system Proxy, which is Charles Proxy Setting as set in the previous step.

The value of server is the IP address on your PC: ifconfig en0

When you’re done, a pop-up box will appear on the PC asking you if you want to allow your phone to be on the PC:

Just click “Allow.”

Charles can then capture any HTTP request made on the phone, such as opening the Ele. me APP:

The original

The 2018-11-20 update

Download the HTTPS certificate from an ios mobile phone

The preceding proxies can capture packets that cannot be accessed through HTTPS. To capture packets, you need to download a certificate on the mobile phone

Download the certificate installation process



Click on options and a popup will pop up



Open the mobile browser to access CHLS. Pro/SSL (please make sure that the mobile phone Settings have been completed and the proxy has been carried out. If not, please refer back to the mobile phone Settings steps)



Click Permit to install the certificate

Click on the install



Click Finish to complete the installation process

View mobile – Settings – General – Description files and Device management



Check whether the Charles description file has been installed. If so, the installation is successful. If not, reinstall it

Go mobile – General – About Native – Certificate Trust Settings (bottom of phone)



Trust Charles



Click Continue to complete, you can capture packets