我收到一个奇怪的错误:'Could not find a storyboard named 'Main' in bundle NSBundle'
当我尝试在真实的 iOS 设备上运行我的应用程序时。
我的目录中有该文件,它在模拟器中运行良好。但是,在 Copy Bundle Resources
部分中,文件 Main.storyboard
是红色的。
我尝试删除它并再次添加它,重新启动 Xcode,清理构建等,但无济于事。这是我在 Xcode 中收到的警告:
/Users/ajay/Documents/avx/avx/Base.lproj/Main.storyboard: Internationalization of /Users/ajay/Documents/avx/avx/Base.lproj/Main.storyboard is not available when compiling for targets before iOS 6.0
最佳答案
打开项目的 info.plist 并删除屏幕截图中显示的选定行
如果出现黑屏,请确保选择新的初始 Storyboard作为主界面
2021 年...
您还必须编辑 UIApplicationSceneManifest
。请参阅下面的最新答案。
关于iphone - 在 bundle 中找不到名为 'Main' 的 Storyboard ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19240054/