在Product -> Scheme -> Edit Scheme -> Run -> Arguments -> Environment Variables 中添加添加
OS_ACTIVITY_MODE: disable 即可。