简体   繁体   English

AppStore更新后神秘的应用程序崩溃

[英]Mysterious app crash after AppStore update

We have released an app to the AppStore and after an update it crashes after trying to login.我们已经向 AppStore 发布了一个应用程序,并且在尝试登录后它在更新后崩溃。 We have been heavily relying on a CoreData database in it and we think it is the reason of the crash.我们一直严重依赖其中的CoreData数据库,我们认为这是崩溃的原因。 Nevertheless I couldn't get any valuable info from the device, just a crash log that features some thread information.尽管如此,我无法从设备中获取任何有价值的信息,只有包含一些线程信息的崩溃日志。 Here's how it looks:这是它的外观:

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0xd0000008
Crashed Thread:  0

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libobjc.A.dylib                 0x32b3e5b0 objc_msgSend + 16
1   Foundation                      0x337cbd18 -[NSError dealloc] + 56
2   libobjc.A.dylib                 0x32b40484 (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 164
3   CoreFoundation                  0x31bc843c _CFAutoreleasePoolPop + 12
4   Foundation                      0x337ccf76 -[NSAutoreleasePool drain] + 118
5   CoreData                        0x32f6d4ae -[NSManagedObjectContext save:] + 1206
6   ourapp                      0x0012fbf8 0xba000 + 482296
7   CoreData                        0x32f70bbe developerSubmittedBlockToNSManagedObjectContextPerform + 86
8   CoreData                        0x32f70cee -[NSManagedObjectContext performBlockAndWait:] + 90
9   ourapp                      0x0012fb4c 0xba000 + 482124
10  ourapp                      0x000c4e08 0xba000 + 44552
11  ourapp                      0x000cced4 0xba000 + 77524
12  ourapp                      0x000db50a 0xba000 + 136458
13  ourapp                      0x0014c41a 0xba000 + 599066
14  Foundation                      0x33893ef2 __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke_0 + 14
15  Foundation                      0x337d39ec -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 196
16  Foundation                      0x337d3908 -[NSURLConnectionInternal _withActiveConnectionAndDelegate:] + 56
17  CFNetwork                       0x38da65dc ___delegate_didFinishLoading_block_invoke_0 + 24
18  CFNetwork                       0x38da5cc8 ___withDelegateAsync_block_invoke_0 + 52
19  CFNetwork                       0x38dce130 ___performAsync_block_invoke_068 + 16
20  CoreFoundation                  0x31bcb74a CFArrayApplyFunction + 174
21  CFNetwork                       0x38dce58e RunloopBlockContext::perform() + 70
22  CFNetwork                       0x38d3215a MultiplexerSource::perform() + 186
23  CoreFoundation                  0x31c5a680 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
24  CoreFoundation                  0x31c59f7a __CFRunLoopDoSources0 + 358
25  CoreFoundation                  0x31c58cb2 __CFRunLoopRun + 642
26  CoreFoundation                  0x31bcbeb8 CFRunLoopRunSpecific + 352
27  CoreFoundation                  0x31bcbd44 CFRunLoopRunInMode + 100
28  GraphicsServices                0x399c92e6 GSEventRunModal + 70
29  UIKit                           0x394872f4 UIApplicationMain + 1116
30  ourapp                      0x000be76a 0xba000 + 18282
31  ourapp                      0x000bb684 0xba000 + 5764

Are there any other chances I can get more info out of this situation?我还有其他机会可以从这种情况中获得更多信息吗? How can I plug it in to XCode and possibly trace the crash or it can only be done post-factum?我怎样才能将它插入 XCode 并可能追踪崩溃或者它只能在事后完成?

And most importantly, what do you think is causing the crash?最重要的是,您认为是什么导致了崩溃?

Our problem was connected with Core Data lightweight migration.我们的问题与 Core Data 轻量级迁移有关。 We were using the "Magical Record" library for handling our Core Data fetches and updating it solved the problem.我们使用“神奇记录”库来处理我们的核心数据获取并更新它解决了这个问题。

Also, this blog post was quite useful.此外, 这篇博文非常有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM