我正在研究我的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.
更多推荐
发布评论