1 官方网站下载,安装好Charles
https://www.charlesproxy.com/download/
2 安装ssl证书
3 信任证书
4 手机iPhone配置 ,获取证书url
5 按照提示,在iPhone端打开配置好代理端口 手机跟Mac配置统一个wifi,手机端配置好代理到Mac的ip地址
6,手机端的safari输入chls.pro/ssl地址下载手机端证书,并安装
最后按照之前提示的,setting后面的配置,打开手机端的证书信任
最后配置你想要抓包的网址地址
然后就可以抓包了。