无法使用情节提要在捆绑包中加载NIB [英] Could not load NIB in bundle using storyboard

查看:163
本文介绍了无法使用情节提要在捆绑包中加载NIB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在最新版本的iOs 8.3中,当我运行一个应用程序时出现此错误:

With the last version of iOs 8.3, I get this error when I run one of my app:

由于未捕获的异常"NSInternalInconsistencyException"而终止应用程序,原因:无法在捆绑包中加载NIB:" NSBundle

该应用程序有2个故事板,一个用于iPhone(正常工作),另一个用于iPad(崩溃).

The app has 2 storyboards, one for iPhone (working normally) and the other for iPad (crashing).

我尝试了有关本主题的建议,但没有结果:

I've tried the suggestions of this topic with no results: Xcode 6.3: Could not load NIB in bundle

就我而言,我正在使用StoryBoards,并且在使用尺寸类别"上没有标记. 在iOs 8.2之前,该应用程序可以正常运行.

In my case I'm using StoryBoards and I've no flag on "Use size classes". Until iOs 8.2 the app worked fine.

这是iOs 8.3的错误吗?有人提出了解决方案吗? 谢谢!

Is this a iOs 8.3 bugs? Anyone founded a solution? Thank you!

如果我在iPhone上使用iPad故事板,在iPad上使用iPhone故事板,它们将起作用! 我也尝试重命名情节提要,但没有任何变化.

If I use the iPad storyboard on iPhone and the iPhone storyboard on iPad they work! I also tried to rename the storyboards, but nothing change.

作为初始视图控制器的SplitViewController导致崩溃!如果我将初始视图控制器移至另一个视图控制器,则该应用程序将运行!

EDIT 2: The SplitViewController as initial view controller causes the crash! If I move the initial view controller to another view controller the app works!

一些消息:问题是由我的SplitViewController的MasterViewController引起的.我正在使用TabBarController作为MasterViewController,它在iOs 8.3中崩溃.如果我将MasterViewController更改为另一个视图,则该应用程序可以正常工作.

EDIT 3: Some news: the problem is caused by the MasterViewController of my SplitViewController. I'm using a TabBarController as MasterViewController and it crash with iOs 8.3. If I change the MasterViewController to another view, the app works.

推荐答案

问题是由具有TabBarController作为MasterViewController的SplitViewController引起的. 这会导致iOs 8.3崩溃. 我用按钮替换了TabBarController,现在该应用程序正在运行.

The problem was caused by a SplitViewController with a TabBarController as a MasterViewController. This cause a crash in iOs 8.3. I replaced the TabBarController with buttons and now the app is working.

我希望这些信息可以对某人有所帮助.

I hope this informations may help someone.

这篇关于无法使用情节提要在捆绑包中加载NIB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆