http代理
Proxy -> Proxy Settings -> macOS,勾选 Enable macOS proxy、Use HTTP proxy 和 Enable macOS proxy on launch
勾选 Proxy → macOS Proxy
https 代理
macOS
- Help -> SSL Proxying -> Install Charles Root Certificate
- 安装完证书选择始终信任
- 勾选 Proxy → macOS Proxy
iOS
Help -> SSL Proxying -> Install Charles Root Certificate on Mobile Device or Remote Browser
手动设置代理后,访问网站下载证书
在设置里面信任证书
iOS模拟器
- Help -> SSL Proxying -> Install Charles Root Certificate on IOS Simulators
- 同样需要在 IOS 模拟器设置中信任 Charles 的证书