NSInternalInconsistencyException – 无法在捆绑中加载NIB
我得到以下exception:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </var/mobile/Applications/57C8544B-05F6-445D-80A9-FAC9672F278B/MyApp.app> (loaded)' with name 'MyNibName''
我尝试了在stackoverflow的类似的问题build议的解决scheme的数量,但仍然得到这个问题。
这个问题是与加载地址簿的特定xib文件。
这只发生在iPhone上,而不是在iPad和模拟器上。
我也尝试删除现有的xib文件,并创build一个新的,但没有解决。
With few attempts of testing, I found that the file works fine for certain number of attempts and then starts giving above error only on iPhone.
请帮忙。
提前致谢。
最后经过长时间的debugging和testing,我发现这个问题。 这个问题不是用NIB文件,而是用两个nsmutablearrays,我已经声明,并正在填充,但不使用它们。 我删除他们,然后它的工作。 这对我来说有点奇怪