我有两个崩溃日志,我无法理解原因。两者几乎相同:
0 CoreFoundation 0x382de3e2 __exceptionPreprocess + 158
1 libobjc.A.dylib 0x3716a95e objc_exception_throw + 26
2 CoreFoundation 0x382de302 +[NSException raise:format:] + 102
3 RogApp 0x00101eea +[UAirship shared] (UAirship.m:320)
4 RogApp 0x0012d3ea -[UAEvent addDataFromSessionWithKey:forKey:] (UAEvent.m:96)
5 RogApp 0x0012d44a -[UAEvent addDataFromSessionForKey:] (UAEvent.m:100)
6 RogApp 0x0012da1e -[UAEventAppExit gatherIndividualData:] (UAEvent.m:230)
7 RogApp 0x0012d520 -[UAEvent gatherData:] (UAEvent.m:114)
8 RogApp 0x0012d1a0 -[UAEvent initWithContext:] (UAEvent.m:57)
9 RogApp 0x0012d1cc +[UAEvent eventWithContext:] (UAEvent.m:64)
10 RogApp 0x00101e0a +[UAirship land] (UAirship.m:302)
11 RogApp 0x0002ff34 -[RAAppDelegate applicationWillTerminate:] (RAAppDelegate.m:179)
12 UIKit 0x3764fd9e -[UIApplication _terminateWithStatus:] + 130
13 UIKit 0x3764c650 -[UIApplication _handleApplicationSuspend:eventInfo:] + 2200
14 UIKit 0x375c229c -[UIApplication handleEvent:withNewEvent:] + 2464
15 UIKit 0x375c1778 -[UIApplication sendEvent:] + 68
16 UIKit 0x375c11ba _UIApplicationHandleEvent + 6194
17 GraphicsServices 0x3555f5f2 _PurpleEventCallback + 586
18 GraphicsServices 0x3555f222 PurpleEventCallback + 30
19 CoreFoundation 0x382b33e2 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 30
20 CoreFoundation 0x382b3386 __CFRunLoopDoSource1 + 134
21 CoreFoundation 0x382b220a __CFRunLoopRun + 1378
22 CoreFoundation 0x38225238 CFRunLoopRunSpecific + 352
23 CoreFoundation 0x382250c4 CFRunLoopRunInMode + 100
24 GraphicsServices 0x3555e336 GSEventRunModal + 70
25 UIKit 0x3761528c UIApplicationMain + 1116
26 RogApp 0x0002f7fa main (main.m:17)
27 RogApp 0x0002f774 0x2d000 + 10100RogApp
之间
26 RogApp 0x0002f7fa main (main.m:17)
和
11 RogApp 0x0002ff34 -[RAAppDelegate applicationWillTerminate:] (RAAppDelegate.m:179)
我的代码没有任何调用
在RAAppDelegate中我:
- (void)applicationWillTerminate:(UIApplication *)application
{
[UAirship land];
}
那么为什么app在前景中终止?它与系统条件有关吗? 感谢