1、勾选 Charles MacOS Proxy 设置
Charles -> Proxy -> MacOS Proxy
2、Charles 弹出警告(将 Charles 移至 Applications 文件夹中):
Charles cannot configure your proxy settings while it is on a read-only volume. Perhaps you are running Charles from the disk image? If so, please copy Charles to the Applications folder and run it again. Otherwise please ensure that Charles is running on a volume that is read-write and try again.
3、处理 Charles 警告、命令行工具输入如下两条命令
sudo chown -R root "/Applications/Charles.app/Contents/Resources"
sudo chmod -R u+s "/Applications/Charles.app/Contents/Resources"
4、勾选 MacOS Charles Proxy 设置
这样就可以正常抓包啦