On Charles mac app, if I go to
Help > SSL Proxying > Install Charles Root Certificate on iOS Simulators
and then run any Simulator from Xcode I don't see Charles certificates installed on simulator.
I am using Charles v4.6.1. This was working fine on iOS Simulator 14.4. If you have any solutions please let me know.
iOS Simulators Quit your iOS Simulator. Launch Charles and go to the Help menu. Choose the "SSL Proxying > Install Charles Root Certificate in iOS Simulators" item. This will install your Charles Root Certificate into all of your iOS Simulators.
After you launch your Simulator, in Charles, go to Help → SSL Proxying →Install Charles Root Certificate in iOS Simulators.
As before, open the Settings app and navigate to General ▸ About ▸ Certificate Trust Settings. Trust the certificate you just installed. Next, in the macOS Charles app, select Proxy ▸ SSL Proxying Settings. Ensure Enable SSL Proxying is checked, and add a value for the traffic you want to inspect.
It's a bug from Charles Proxy. You should wait until Charles Proxy fixes it.
To work around, you might manually export the certificate from Help Menu -> SSL Proxying -> Save Charles Proxy Root Certificate.
Then drag the file to iOS Simulator. Then trusting it by Going to Settings app -> General -> About -> Certificate Trust Settings.
Or You can install and trust the certificate by using simctl
CLI
xcrun simctl keychain booted add-root-cert <your_certificate>
If you prefer automation work, do it with one-click, you might checkout Proxyman, which is a modern version of Charles Proxy.
It also fully supports Xcode 12.5, iOS 14.5 Simulators, Big Sur, and M1 Macbook.
Disclaimer: I develop Proxyman app. Hope that it helps you.
You can try this (for any new simulator). This process still work with simulator 14.5 and iOS 15
Settings/General/Profile/Download Profile
to install the certificate (Profile link in settings appear only after downloading profile from https://chls.pro/ssl). In iOS 15, the profile can be found under Settings/General/Device Management
.
Settings/General/About/Certificate
Trust Settings to accept the newly installed certificate
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With