这个错误是什么意思? [英] What is the mean of this error?

查看:54
本文介绍了这个错误是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序第一次在模拟器中运行良好,当我在模拟器中重新运行我的应用程序并按下某个按钮时,出现此类错误.我正在使用本地数据库,所以我想这可能是出现此错误消息的原因?

My application is working very well for first time in the sumilator, when I rerun my app in simulator and press some button, I get this type of error. I am using Local DB, so I thought maybe it is reason for taking this error message?

* 由于未捕获的异常NSInternalInconsistencyException"而终止应用程序,原因:无法加载包中的 NIB:NSBundle(已加载)",名称为UIViewController-Lat-JX-Ucy"和目录'MainStoryboard_iPad.storyboardc''

* Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle (loaded)' with name 'UIViewController-Lat-JX-Ucy' and directory 'MainStoryboard_iPad.storyboardc''

* 第一次抛出调用栈:(0x1bdc012 0x18e9e7e 0x1bdbdeb 0xa49ef9 0xc7554a 0xc75b43 0xc75c14 0x18fd705 0x8312c0 0x831258 0x8f2021 0x8f257f 0x8f16e8 0x860cef 0x860f02 0x83ed4a 0x830698 0x27bedf9 0x27bead0 0x1b51bf5 0x1b51962 0x1b82bb6 0x1b81f44 0x1b81e1b 0x27bd7e3 0x27bd668 0x82dffc 0x2d9d 0x2cc5)libc++abi.dylib:终止调用抛出异常

* First throw call stack: (0x1bdc012 0x18e9e7e 0x1bdbdeb 0xa49ef9 0xc7554a 0xc75b43 0xc75c14 0x18fd705 0x8312c0 0x831258 0x8f2021 0x8f257f 0x8f16e8 0x860cef 0x860f02 0x83ed4a 0x830698 0x27bedf9 0x27bead0 0x1b51bf5 0x1b51962 0x1b82bb6 0x1b81f44 0x1b81e1b 0x27bd7e3 0x27bd668 0x82dffc 0x2d9d 0x2cc5) libc++abi.dylib: terminate called throwing an exception

推荐答案

当我加载一个包含与前一个包几乎 相同的故事板的新包时,我遇到了同样的问题.

I had the same issue when I was loading a new bundle that contained almost the same storyboards as the previous bundle.

就我而言,在原始故事板中,一个容器中有一个 OriginalViewController,但在更新的包中,该容器具有 NewViewController.当尝试使用新的故事板打开这个容器时,我崩溃了,因为在新的故事板中没有找到具有以前 ID(在你的例子中是 Lat-JX-Ucy)的视图控制器——它在旧的故事板中.

In my case in original storyboard there was an OriginalViewController in one container, but in updated bundle that container had NewViewController. When trying to open this container using new storyboard I had a crash because no view controller with previous id (Lat-JX-Ucy in your case) was found in new storyboard - it was in the old storyboard.

我的解决方案是在加载新包之前清除先前加载的包的缓存.一切都很好解释这里

My solution was to clear cache of the previously loaded bundle before loading a new one. Everything is well explained here

这篇关于这个错误是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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