无法在捆绑中加载NIB - 需要灵感 [英] Could not load NIB in bundle - inspiration needed

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

问题描述

我目前看到此错误:


MonoTouchException:抛出Objective-C异常。名称:
NSInternalInconsistencyException原因:无法在包中加载NIB:
'NSBundle< / Users / imac / Library / Application Support / iPhone
Simulator / 5.0 / Applications / 5D8B4B51-9FB2-4331 -BFEB-B1A0AC77DF42 / Tutorial.app>
(已加载)',名称为'MyFirstView'

MonoTouchException: Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: Could not load NIB in bundle: 'NSBundle </Users/imac/Library/Application Support/iPhone Simulator/5.0/Applications/5D8B4B51-9FB2-4331-BFEB-B1A0AC77DF42/Tutorial.app> (loaded)' with name 'MyFirstView'

我看过很多其他问题,如:

I've looked through lots of other questions like:

但我看不到任何适用于此 - 它们主要是关于文件命名问题,我的Nib似乎在输出包文件中具有正确的名称。

But I can't see that any apply here - they are mainly about file naming issues and my Nib does appear to be in the output package file with the correct name.

我正在使用MonoTouch 5.2.5和xcode 4.2,并且目标是SDK5

I'm using MonoTouch 5.2.5 and xcode 4.2, and targeting SDK5

有没有人有任何想法关于我可以尝试解决这个问题?

Does anyone have any ideas about what I could try to fix this?

推荐答案

问题最终似乎在扩展工具链中的某个地方 - 介于MonoDevelop之间, xCode4和模拟器。

The problem eventually it seems was somewhere in the extended toolchain - somewhere between MonoDevelop, xCode4 and the simulator.

重新启动所有内容,重置模拟器清除了问题。

Restarting everything, and resetting the simulator cleared the problem.

后来同样我已经看到旧的NIB文件出口的小问题在模拟器上持续存在,即使我已经完全删除它们并重建了 - 所以某些地方仍然出现问题......但每次都是干净的解决它。

Later in the same chain I've seen smaller issues with "old NIB file outlets" persisting on the simulator even after I've definitely deleted them and rebuilt - so something is still going wrong somewhere... but a clean solves it each time.

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

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