因为Xcode11之后新创建的工程会多出两个文件 SceneDelegate ,所以如果需要使用旧版的话需要自己增删一些文件/代码。
- 删除
SceneDelegate.h/.m/.swift
文件 - Info.plist 文件 删除
Application Scene Manifest
- AppDelegate 里面删除
UISceneSession lifecycle 下的代码
- 添加
@property (strong, nonatomic) UIWindow *window;
- 不用sb的话,AppDelegate 添加创建window的代码.