NSInternalInconsistencyException无法加载nib ind bundle [英] NSInternalInconsistencyException Could not load nib ind bundle

查看:204
本文介绍了NSInternalInconsistencyException无法加载nib ind bundle的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发iPad的应用程序。应用程序具有以下详细信息:

I am developing an application for the iPad. The application has following details:

Base SDK:4.2
部署目标:3.2

Base SDK: 4.2 Deployment Target: 3.2

是一个游戏应用程序,它有10轮。

The application is a game application and it has got 10 rounds.

在每轮中,我加载6个控制器,每轮完成后,同一个周期开始。

In each round I am loading 6 controllers and after the completion of each round again the same cycle starts.

应用程序可正常工作直到4轮,但在第4轮结束时它崩溃给出以下错误:

The application works fine till 4 rounds but at the end of 4th round it crashes given following error:

NSInternalInconsistencyException无法加载nib ind bundle:

我已经检查了所有解决方案,如检查nib文件名,检查nib文件路径。 Nib文件名和nib文件路径都正确,目标也正确,但仍然崩溃。

I have checked for everything solution like checking the nib file name, checking the nib file path. Nib file name and nib file path both are correct and targets are also correct but still it crashes.

任何帮助,这将不胜感激。

Any help for this will be appreciated.

感谢,

Shyam

推荐答案

我有这个问题,在我的情况下,原因是我的项目没有本地化意大利语,但应用程序是在it设置下运行。

I had this problem too, in my case the cause was that my project had no localization to italian but the app was running under "it" settings.

英语作为区域设置默认情况下,一切正常,而实际设备具有意大利设置,所以应用程序崩溃时尝试加载RootViewController,因为它正在寻找一个意大利版本。

The simulator has English as regional setting by default, everything was ok on it while the actual device had italian settings, so the app crashes immediately when attempting to load the RootViewController, because it was looking for an italian version of it.

在XCode中,我添加了一个意大利本地化的版本到RootViewController(现在我看到它下面的两个条目,一个默认和英语创建的英语)。请注意,您不需要在视图中执行真正的翻译,它足以创建它,并保留默认。 Xcode会复制原始视图中的所有标签和文本,您现在就暂时离开。

In XCode I added an italian localized version to the RootViewController (now I see two entries under it, one for english created by default and italian). Note that you don't need to do the real translations in the view, it's enough that you create it and leave as default. Xcode copies all labels and text from the original view, you just leave as is for the moment.

您必须为项目中的每个视图控制器执行此操作。有关国际化和本地化的说明,请参阅Apple文档此处

You'll have to do this for each view controller in your project. Refer to Apple docs, for explanations on internationalization and localization here.

作为解决方法,有些人可能更喜欢在执行测试时将设备区域设置更改为英语...

As a workaround, some people might prefer to change the device regional settings to English while performing tests...

这篇关于NSInternalInconsistencyException无法加载nib ind bundle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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