From your error message:
Application windows are expected to have a root view controller at the end of application launch
How old is this "old" project? If it's more than a few years, do you still have:
[window addSubview:viewController.view];
You should instead replace it with:
[window setRootViewController:viewController];
本文探讨了如何解决在老旧项目中应用窗口未正确设置根视图控制器的问题,提供了从旧方法到新方法的过渡建议,确保应用程序在启动时正常运行。

被折叠的 条评论
为什么被折叠?



