Product->Scheme->Edit Scheme->Run->Arguments->Environment Variables 在这个Environment Variables下添加一个name:OS_ACTIVITY_MODE value:disable的键值对即可