iOS故事板奇怪的错误

系统教程 行业动态 更新时间:2024-06-14 16:57:18
iOS故事板奇怪的错误 - 'NSInternalInconsistencyException'(Main.storyboardc)(iOS storyboard weird error - 'NSInternalInconsistencyException' (Main.storyboardc))

我正在研究我的xcode项目。 我刚刚清理项目并尝试构建项目。 不知道发生了什么我得到了非常奇怪的错误。

***由于未捕获的异常'NSInternalInconsistencyException'而终止应用程序,原因:'无法在bundle中加载NIB:'NSBundle(已加载)',名称为“UIViewController-bSa-xT-TPG”,目录为“Main.storyboardc”

不知道我要检查哪个代码!! 我提出了一些与此相关的问题,但无法解决我的问题。

编辑:-

当我试图在Find navigator中搜索storyboardc时。 它给出了这样的结果。

编辑:

我也无法在构建阶段看到故事板。 我试过它手动添加但仍然出现在这样的红色符号。

i am working on my xcode project. i have just clean the project and try to build the project. dont know what happen i got very weird error.

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle (loaded)' with name 'UIViewController-bSa-xT-TPG' and directory 'Main.storyboardc'

Don't know which code i have to check!! i refereed some question related to this but can't solve my problem.

EDIT:-

when i tried to search storyboardc in Find navigator. it gives result like this.

Edit:

I am also not able to see storyboard in build phases. i have tried it to add manually but still it appears in red symbol like this.

最满意答案

我的问题解决了。 不知道是不是正确的方法。 我已将Main.storyboard从Base.lproj移动到任何其他文件夹。 然后从该文件夹中删除Main.storyboard并再次将其拖放到mainbundle即project window并在localization设置中勾选所有内容。 然后清理并构建并成功运行项目。

My problem is solved. don't know is it correct method or not. i have move Main.storyboardfrom Base.lproj to any other folder. then delete Main.storyboard from this folder and again drag and drop it in mainbundle means project window and tick mark all in localization setting. then clean and build and run the project successfully.

更多推荐

本文发布于:2023-04-12 20:59:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/27010c815ada26375260c3ed37c8b67a.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:奇怪   错误   故事   iOS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!