xcode 在捆绑 NSBundle 中找不到名为“Main”的故事板

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25739477/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 05:30:03  来源:igfitidea点击:

Could not find a storyboard named 'Main' in bundle NSBundle

objective-cxcodensbundle

提问by user3863704

during the progress of my app I decided to change from using a UIStoryboard to .xib file, and now I get the error:

在我的应用程序的过程中,我决定从使用 UIStoryboard 更改为 .xib 文件,现在我收到错误消息:

Could not find a storyboard named 'Main' in bundle NSBundle

在捆绑 NSBundle 中找不到名为“Main”的故事板

How can I fix this problem within the Simulator part of my app?

如何在我的应用程序的模拟器部分解决这个问题?

回答by Hemant Chittora

Remove the "Main storyboard file base name"or "UIMainStoryboardFile"Key from your info.plist file.

从 info.plist 文件中删除"Main storyboard file base name""UIMainStoryboardFile"键。

info.plist

信息.plist

回答by Vicky

Click Your Story board

单击您的故事板

then do step 2 and step 3

然后执行第 2 步和第 3 步

enter image description here

在此处输入图片说明

回答by benmore99

if you are using SceneDelegate in iOS13, Try to remove this key.

如果您在 iOS13 中使用 SceneDelegate,请尝试删除此键。

Main storyboard in UIScene

UIScene 中的主故事板