我刚刚设置了我的应用程序的新版本,但在更新到新版本 版本的设备上,应用程序在我applicationDidFinishLaunching:WithOptions后崩溃了。 我更新/添加了一些属性到我的CoreData数据库。AppStore更新后iPhone应用程序崩溃 - CoreData
这是包含崩溃的线程。任何帮助?
Date/Time: 2013-03-07 18:14:47.532 +0100
OS Version: iOS 6.0 (10A405)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 9
0 libsystem_kernel.dylib 0x3b501350 __pthread_kill + 8
1 libsystem_c.dylib 0x3807cfb2 pthread_kill + 54
2 libsystem_c.dylib 0x380b93ea __abort + 90
3 libsystem_c.dylib 0x380b9388 abort + 124
4 distribution 0x001fed18 -[MOManager persistentStoreCoordinator] + 420
5 distribution 0x0020000e -[NSThread(DataCore) threadContext] + 274
6 distribution 0x001fd470 +[KwManagedObject defaultContext] + 44
7 distribution 0x001fd6f6 +[KwManagedObject countWithPredicate:] + 26
8 distribution 0x001fd6d6 +[KwManagedObject count] + 18
9 distribution 0x001b3c46 +[DbThread dbCount] (DbThread.m:31)
10 distribution 0x001b3d1a -[DbThread main] (DbThread.m:43)
11 Foundation 0x38e69a3c __NSThread__main__ + 968
12 libsystem_c.dylib 0x3805f0de _pthread_start + 306
13 libsystem_c.dylib 0x3805efa4 thread_start + 4
您是否按照[Apple的文档](https://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/CoreDataVersioning/Articles/Introduction.html)中关于模型版本控制和迁移的指导? – MattP 2013-03-07 20:11:43
您是否启用自动轻量级迁移?看到这个主题:http://stackoverflow.com/questions/2310216/implementation-of-automatic-lightweight-migration-for-core-data-iphone – Chris 2013-03-07 20:11:48
@chris:没有我没有更新自动轻量级迁移。但是这是否真的会导致崩溃,我只需要实现轻量级迁移来解决这个问题? thx guys – Fry 2013-03-07 20:26:58