Core Data轻量级迁移崩溃 [英] Core Data lightweight migration crash

查看:168
本文介绍了Core Data轻量级迁移崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用轻量级迁移更新了我的数据库。如果我在调试模式下通过xcode在我的设备上更新一切运行正常。如果我通过iTunes加载应用程序作为存档文件,它会崩溃,然后加载rootViewController。这只发生在我的大型测试数据库> 100mb。我在崩溃日志中没有任何有用的东西,不知道该怎么处理。

I updating my database with a lightweight migration. If I do the update on my device through xcode in debug mode everything runs fine. If I load the app through iTunes as a archive file it will crash before loading the rootViewController. This only happens with my large test database >100mb. I don't get anything useful in the crash log and am not sure what to do with this.

他是我在崩溃日志中唯一可以找到的相关行。

His is the only relevant line I can find in the crash log.

未知的线程发生未知风格:5,state_count:1

Unknown thread crashed with unknown flavor: 5, state_count: 1

推荐答案

通常这将反映在崩溃报告(它会说一些关于未能及时启动),但iOS设备希望你在屏幕上获得一个视图(或ApplicationDidFinishLaunching完成,我不知道确切的是什么寻找)在一定的时间或它只是放弃和关闭应用程序。如果你做了大量的工作,你会想在开始工作之前得到一些屏幕。不幸的是,这在调试环境中不会发生,所以测试起来很痛苦。

Normally this would be reflected in the crash report (It would say something about failing to launch in time) but iOS devices expect you to get a view on the screen (or for ApplicationDidFinishLaunching to finish, I'm not sure exactly what it looks for) in a certain amount of time or it just gives up and closes the app. If you are doing a significant amount of work you'll want to get some kind of screen up before you start that work. Unfortunately this doesn't happen in a debug environment so it's a pain to test.

这篇关于Core Data轻量级迁移崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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