Edit Scheme -> Run -> Arguments
在 Environment Variables 里边添加 OS_ACTIVITY_MODE = disable
Environment Variables
OS_ACTIVITY_MODE = disable