step1: 启动模拟器 & Charles

step2: Charles 上点击 Proxy, 打开macOS proxy

mac电脑IOS模拟器配置Charles抓包代理_General


step3: 模拟器上输入 /ssl , 点击 allow 安装证书.

mac电脑IOS模拟器配置Charles抓包代理_General_02


step4: 模拟器里打开“设置(Settings)”, 点击“通用(General)”, 选择Profile

mac电脑IOS模拟器配置Charles抓包代理_General_03

step5:选中下载下来的profile文件:

mac电脑IOS模拟器配置Charles抓包代理_General_04

step6: install 它

mac电脑IOS模拟器配置Charles抓包代理_General_05

step7: 模拟器上 Settings -> About -> Certificate Trust Settings

mac电脑IOS模拟器配置Charles抓包代理_General_06


step 8: enable 它.

mac电脑IOS模拟器配置Charles抓包代理_General_07