捆绑包中的 NIB 名称为 MainWindow-iPad 丢失
我有一个有 6 个选项卡的选项卡栏应用程序。当我调试并运行应用程序时,它会在控制台中给出以下消息而崩溃:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/priyachaturvedi/Library/Application Support/iPhone Simulator/4.2/Applications/7C5CE523-A843-443A-9B0B-BDF2336EA7D0/Aljex Mobile-iPad.app> (loaded)' with name 'MainWindow-iPad''
我已经在以下链接中搜索到了答案
和
和许多其他内容,但对我来说没有任何作用。
任何人都知道为什么这会发生在我身上???
提前致谢 !!!
I have a Tab bar application having 6 tabs. When I debug and runthe app, it crashes by giving following message in console :
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/priyachaturvedi/Library/Application Support/iPhone Simulator/4.2/Applications/7C5CE523-A843-443A-9B0B-BDF2336EA7D0/Aljex Mobile-iPad.app> (loaded)' with name 'MainWindow-iPad''
I have already searched out the answersin the following links
How to fix iPhone Simulator trying to launch a Nib that isn't there?
How are XIBs loaded for localized apps?
and
and many other but nothing worked for me.
any one have any idea why this is happening to me???
Thanks in advance !!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我也有同样的问题。我意识到,当您输入 xib 文件的名称时,它必须是“MainWindow-ipad”,并且应用程序目标文件中没有 xib 扩展名
I have the same problem too. I realise that when you enter the name of the xib file, it has to be "MainWindow-ipad" without the xib extension in your app targ
假设您已经检查过文件名等。所以我排除了文件名不匹配的假设。哪里可能有问题?您可能会错误地排除 MainWindow-iPad.xib 在构建(链接)期间复制到您的应用程序中。如何检查?
Suppose you already checked filenames and so on. So I exclude hypothesis of filenames mismatch. Where might be a problem? You might by mistake excluded MainWindow-iPad.xib from being copied into your app during build (linking) time. How to check that?