如何解决XCode11中[Application] The app delegate must implement the window property if it wants to use ...

如何解决XCode11中[Application] The app delegate must implement the window property if it wants to use ..._第1张图片

用XCode11新建一个工程支持的最小iOS版本小于iOS13的话,XCode控制台会爆出[Application] The app delegate must implement the window property if it wants to use a main storyboard file.的提示。遇到了这个问题,在打开APP内容的时候一片黑,如何解决呢?其实很简单啊。Apple对APP的生命周期略做了更改,其实也没啥,直接上解决方案。

如何解决XCode11中[Application] The app delegate must implement the window property if it wants to use ..._第2张图片

找到这个文件,很熟悉吧。按照下图这样做即可。
如何解决XCode11中[Application] The app delegate must implement the window property if it wants to use ..._第3张图片

没错,就是

@synthesize window = _window;

这句话,添加到图中的位置即可。至此结束,谢谢。

多谢捧场

如果您觉得我的文章有价值,那么赏脸打赏一个,鄙人感激不尽。不过,不打赏看看也是好的,如果有不对的地方,还请您多多指正。


如何解决XCode11中[Application] The app delegate must implement the window property if it wants to use ..._第4张图片

你可能感兴趣的:(如何解决XCode11中[Application] The app delegate must implement the window property if it wants to use ...)