1、使用前设置mac代理
2、Proxy设置 顶部工具栏:Proxy-> Proxy settings ->proxies :勾选enable transparent http proxying :
3、https请求会显示unkonwn 就是不能解析https请求
更改方法如下:Proxy-> SSL Proxying Settings->SSL Proxying:勾选Enable SSL Proxying :
4、添加host,端口是443 把所有的host都设置进去
5、如上后接口请求会显示在charles列表,会存在如下情况
导致原因:手机代理没有开启
参考:
https://www.jianshu.com/p/b31d75c1dea7