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