Could not load NIB in bundle: 'NSBundle.....

学习NSNotification时遇到了这个问题,错误日志如下:

2015-08-28 17:47:24.617 NSNotificationDemo[7158:786614] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException‘, reason: ‘Could not load NIB in bundle: ‘NSBundle </private/var/mobile/Containers/Bundle/Application/18D95FA1-2AA9-48B8-9528-4FD9B9B65B75/NSNotificationDemo.app> (loaded)‘ with name ‘ViewController‘‘
*** First throw call stack:
(0x287910d7 0x36c23c77 0x2879101d 0x2c1c32a9 0x2c0da987 0x2bf0e6dd 0x2bdf2349 0x2bdf22cd 0x2bdf83f7 0x2bdf5d6f 0x2be60e91 0xebad9 0x2be5dc85 0x2c05426b 0x2c05690f 0x2c0615e9 0x2c0550c7 0x2f265ec1 0x28757035 0x287562f9 0x28754e53 0x286a06d1 0x286a04e3 0x2be57867 0x2be52445 0xebc3d 0x371f1aaf)
libc++abi.dylib: terminating with uncaught exception of type NSException

下面两个网址提到了这个问题,检查过之后问题依旧存在,目前还在寻求解决方法中……

1. http://blog.csdn.net/itianyi/article/details/8547895

2. http://www.cocoachina.com/bbs/read.php?tid=265037

Could not load NIB in bundle: 'NSBundle.....

时间: 2024-07-30 13:44:12

Could not load NIB in bundle: 'NSBundle.....的相关文章

Could not load NIB in bundle: ‘NSBundle (loaded)‘

昨天手贱去设置了info.plist中"Localization native development region"属性,今天过来发现app有些页面打不开,提示Could not load NIB in bundle: 'NSBundle (loaded)'错误. 找遍了网上的各种解决方案,后来才找到问题:所要打开的页面没有做相应的本地化语言处理 解决方案:添加本地化处理or设置成原来的属性

跳转UICollectionViewController报Could not load NIB in bundle解决办法

报错代码如下:'Could not load NIB in bundle: 'NSBundle </Users/mac/Library/Developer/CoreSimulator/Devices/A0182119-C6AC-4732-BF37-3E6D35B102E1/data/Containers/Bundle/Application/E5F586ED-526F-4D52-9C7C-9335E772F666/00-ItcastLottery.app> (loaded)' with nam

reason: &#39;Could not load NIB in bundle: &quot;XXXXXXX&quot; with name &#39;xxCell&#39;

错误信息:reason: 'Could not load NIB in bundle: 'NSBundle </Users/caitong/Library/Developer/CoreSimulator/Devices/5EC57F6E-CC41-4FD6-80D7-443B52B9D181/data/Containers/Bundle/Application/BB8E1CAE-441F-46FF-802A-EFC05088D841/ColleceService.app> (loaded)'

Xcode Could not load NIB 的一个问题解决

# Could not load NIB 的一个问题 html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form

Could not find a storyboard named &#39;Main&#39; in bundle NSBundle &lt;/Users/tianxiao/

1.删掉工程中main.storyboard 后要删除plist文件中对应的键值,否则会报如下错误: Could not find a storyboard named 'Main' in bundle NSBundle 2.删除main.storyboard后,需要在AppDelegate.m中初始化一个window进行使用,否则应用程序没有window可用. self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen

Could not find a storyboard named &#39;Main&#39; in bundle NSBundle

1.删掉工程中main.storyboard 后要删除plist文件中对应的键值,否则会报如下错误: Could not find a storyboard named 'Main' in bundle NSBundle 2.删除main.storyboard后,需要在AppDelegate.m中初始化一个window进行使用,否则应用程序没有window可用. self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen

iOS Could not find a storyboard named &#39;Main&#39; in bundle NSBundle

1.在最新的Xcode6.0之后新建项目默认的是使用Main.storyboard,有些人习惯用storyboard有些人不习惯使用,当我们新建项目删除storyboard时我们运行项目发现会报错:Could not find a storyboard named 'Main' in bundle NSBundle,这是因为我们把storyboard删除了,而storyboard相对的路径没有删除 2.删除Main.storyboard后,我们需要在AppDelegate.m中初始化一个wind

解决IOS could not load NIB in bundler

就在刚刚IOS运行的时候出现一个问题,就是在TableViewController中加载TableViewCell时不能加载nib文件. 然后就百度了一下,大部分说是loadNibNamed:@"nib名字" 时nib名字写错了,当然这也是一个问题, 但是我的问题不是这个引起的. 项目需要协同开发,同事提交个文件我更新了一下后,在Targets下的build phases中Copy Bundle Resources里面没有将nib文件加进来,把nib文件加进来后问题解决,项目运行流畅.

Unity中 动态加载 Resources.Load()和Asset Bundle 的区别

版权声明:本文为博主原创文章,未经博主允许不得转载. 初学Unity的过程中,会发现打包发布程序后,unity会自动将场景需要引用到的资源打包到安装包里,没有到的不会跟进去.我们在编辑器里看到的Asset中的文件结构只是工作于编辑器环境下的,在游戏中unity会重新组织数据库.这是我们一定会遇到一个需求,即动态的加载我们自己的文件,而且想维护这个文件存储和加载的位置,并且是各种自定义的文件. 比如说你换装,需要动态从磁盘load一个模型,正常情况下如果这个模型没有被场景引用到,它都根本不会被打进