[Application] The app delegate must implement the window property if ..... 错误

在xcode中新建ios项目后再真机上运行,会发现手机上一篇漆黑,仔细观察控制台会发现这样的提示:

Application\] The app delegate must implement the window property if it wants to use a main storyboard. 大概意思是: app delegate 必须实现 window属性。 这里有一篇博文详细解释了出现这种问题的原因及解决方式:[https://blog.csdn.net/u011915116/article/details/105096194/](https://blog.csdn.net/u011915116/article/details/105096194/ "https://blog.csdn.net/u011915116/article/details/105096194/") 不想看原因的,直接按照下面的解决方式解决: 要解决这一问题也很简单,既然是找不到window属性,那我们把这个属性加上就可以了。在AppDelegate.m文件的如下位置加上:@synthesize window = _window; 这句代码即可。 ![](https://file.jishuzhan.net/article/1737940773569040385/6b2bbc47290ba1ea346bab6999c961ef.webp)

相关推荐
2501_9159214310 分钟前
iOS 描述文件制作过程,从 Bundle ID、证书、设备到描述文件生成后的验证
android·ios·小程序·https·uni-app·iphone·webview
June bug2 小时前
【配环境】iOS项目开发环境
ios
前端不太难2 小时前
Flutter / RN / iOS 的状态策略,该如何取舍?
flutter·ios·状态模式
2501_9159090613 小时前
如何保护 iOS IPA 文件中资源与文件的安全,图片、JSON重命名
android·ios·小程序·uni-app·json·iphone·webview
lmyuanhang19 小时前
iOS FMDB 的使用
ios
2501_9159090620 小时前
原生与 H5 共存情况下的测试思路,混合开发 App 的实际测试场景
android·ios·小程序·https·uni-app·iphone·webview
app开发工程师V帅20 小时前
Xcode *****exited with status 0. The command had no output.
ios
游戏开发爱好者821 小时前
了解 Xcode 在 iOS 开发中的作用和功能有哪些
android·ios·小程序·https·uni-app·iphone·webview
Digitally1 天前
如何将文件从 iPhone 传输到 Android
android·ios·iphone
2501_915106321 天前
iOS 抓包工具实战实践指南,围绕代理抓包、数据流抓包和拦截器等常见工具
android·ios·小程序·https·uni-app·iphone·webview