解决方案见图,添加相应的字段及值 在项目scheme-edit-run-arguments -environment variables中添加OS_ACTIVITY_MODE disable 图片发自简书App