1.选择 Product -->Scheme-->Edit Scheme2.选择 Arguments3.在Environment Variables添加一个环境变量 OS_ACTIVITY_MODE 设置值为"disable"