1.删除SceneDelegate的.h.m文件。 2.删除info.plist中的“Application Scene Manifest”项。 3.在AppDelegate.h中添加 @property (nonatomic, strong)UIWindow *window;