I'm trying to distribute my app on Testflight but it's crashing for everyone. Works fine when I build from XCode directly onto the device.
The app worked fine on Testflight about a week ago, but a bunch of changes were made.
Here's the crash log:
Last Exception Backtrace:
0 CoreFoundation 0x30fbaecb __exceptionPreprocess + 131
1 libobjc.A.dylib 0x3b751ce7 objc_exception_throw + 38
2 CoreFoundation 0x30fbae0d +[NSException raise:format:] + 112
3 Lexly 0x0022e0af 0x101000 + 1233071
4 Lexly 0x0021ac21 0x101000 + 1154081
5 Lexly 0x002212ad 0x101000 + 1180333
6 Lexly 0x00221f23 0x101000 + 1183523
7 Lexly 0x001659ad 0x101000 + 412077
8 Lexly 0x0015d7ed 0x101000 + 378861
9 Lexly 0x0015d587 0x101000 + 378247
10 Lexly 0x0015d4d7 0x101000 + 378071
11 Lexly 0x00130d69 0x101000 + 195945
12 Lexly 0x00130d19 0x101000 + 195865
13 UIKit 0x33806d03 -[UIViewController _setViewAppearState:isAnimating:] + 438
14 CoreFoundation 0x30f03aa3 __53-[__NSArrayI enumerateObjectsWithOptions:usingBlock:]_block_invoke + 50
15 CoreFoundation 0x30efd4bd -[__NSArrayI enumerateObjectsWithOptions:usingBlock:] + 220
16 UIKit 0x33806e49 -[UIViewController _setViewAppearState:isAnimating:] + 764
17 UIKit 0x3386be5f -[UIViewController _executeAfterAppearanceBlock] + 54
18 UIKit 0x3386bde9 _applyBlockToCFArrayCopiedToStack + 316
19 UIKit 0x337e4b53 _afterCACommitHandler + 458
20 CoreFoundation 0x30f85ff9 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 20
21 CoreFoundation 0x30f83987 __CFRunLoopDoObservers + 286
22 CoreFoundation 0x30f83cd3 __CFRunLoopRun + 738
23 CoreFoundation 0x30eee729 CFRunLoopRunSpecific + 524
24 CoreFoundation 0x30eee50b CFRunLoopRunInMode + 106
25 GraphicsServices 0x35e4d6d3 GSEventRunModal + 138
26 UIKit 0x3384f871 UIApplicationMain + 1136
27 Lexly 0x0013084f 0x101000 + 194639
28 libdyld.dylib 0x3bc4fab7 start + 2
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3bd061f0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x3bd6e7b3 pthread_kill + 55
2 libsystem_c.dylib 0x3bcb6ff5 abort + 73
3 libc++abi.dylib 0x3b10598b abort_message + 71
4 libc++abi.dylib 0x3b11e6e3 default_terminate_handler() + 251
5 libobjc.A.dylib 0x3b751f7b _objc_terminate() + 191
6 libc++abi.dylib 0x3b11c1b1 std::__terminate(void (*)()) + 77
7 libc++abi.dylib 0x3b11bd13 __cxa_rethrow + 99
8 libobjc.A.dylib 0x3b751e2b objc_exception_rethrow + 39
9 CoreFoundation 0x30eee79b CFRunLoopRunSpecific + 639
10 CoreFoundation 0x30eee507 CFRunLoopRunInMode + 103
11 GraphicsServices 0x35e4d6cf GSEventRunModal + 135
12 UIKit 0x3384f86d UIApplicationMain + 1133
13 Lexly 0x0013084b 0x101000 + 194635
14 libdyld.dylib 0x3bc4fab5 start + 1
I tried the fix in this SO question but no luck:
iOS App with Static Lib ALWAYS crashes on Launch of Ad Hoc Archive Build. Cant reproduce in Xcode Debugger
Related
the Tencent bugly reports the following crash, However, i'm unable to detect why my app is crashing. Any ideas?
libobjc.A.dylib objc_object::release() + 16
1 libobjc.A.dylib (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 844
2 libobjc.A.dylib (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 844
3 UIKit ___handleEventQueueInternal + 4892
4 UIKit ___handleHIDEventFetcherDrain + 152
5 CoreFoundation ___CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
6 CoreFoundation ___CFRunLoopDoSources0 + 276
7 CoreFoundation ___CFRunLoopRun + 1204
8 CoreFoundation CFRunLoopRunSpecific + 552
9 GraphicsServices GSEventRunModal + 100
10 UIKit UIApplicationMain + 236
11 QYReaderApp 0x0000000100e84000 + 972980
12 libdyld.dylib _start + 4
I have been trying to integrate a new SDK (from Layar) in my app that already contains the Realm SDK.
The app was working fine up until now (with Realm). As soon as I add the Layar SDK following the steps in the link above (I don't actually call any functionality, I just add the framework and dependencies), the app crashes on launch at the Realm config, with the trace below.
Any ideas as to what might be causing the behaviour?
../realm/table.hpp:1470: [realm-core-0.92.4] Assertion failed: typeid(Col) == typeid(col)
0 XXContainerIOSDebug 0x00000001004747ec _ZN5realm4util18terminate_internalERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 44
1 XXContainerIOSDebug 0x000000010030b83c _ZN5realm4util9terminateEPKcS2_l + 1196
2 XXContainerIOSDebug 0x0000000100535f08 _ZNK5realm5Table8get_boolEmm + 0
3 XXContainerIOSDebug 0x00000001003b86b8 _ZN5realm11ObjectStore22create_metadata_tablesEPNS_5GroupE + 588
4 XXContainerIOSDebug 0x00000001003bed0c _ZN5realm11ObjectStore24update_realm_with_schemaEPNS_5GroupEyRNSt3__16vectorINS_12ObjectSchemaENS3_9allocatorIS5_EEEENS3_8functionIFvS2_S9_EEE + 72
5 XXContainerIOSDebug 0x0000000100321188 RLMUpdateRealmToSchemaVersion + 1512
6 XXContainerIOSDebug 0x000000010038cd6c +[RLMRealm realmWithConfiguration:error:] + 4148
7 XXContainerIOSDebug 0x000000010038b490 +[RLMRealm defaultRealm] + 92
8 XXContainerIOSDebug 0x000000010019c294 -[XXNewsstand init] + 708
9 XXContainerIOSDebug 0x000000010019b92c __34+[XXNewsstand sharedInstance]_block_invoke + 60
10 libdispatch.dylib 0x00000001013c9bb0 _dispatch_client_callout + 16
11 libdispatch.dylib 0x00000001013caa28 dispatch_once_f + 132
12 XXContainerIOSDebug 0x000000010019b8d0 +[XXNewsstand sharedInstance] + 144
13 XXContainerIOSDebug 0x00000001001b09f4 -[XXTrackingManager init] + 272
14 XXContainerIOSDebug 0x00000001001b089c __36+[XXTrackingManager sharedInstance]_block_invoke + 60
15 libdispatch.dylib 0x00000001013c9bb0 _dispatch_client_callout + 16
16 libdispatch.dylib 0x00000001013caa28 dispatch_once_f + 132
17 XXContainerIOSDebug 0x00000001001b0840 +[XXTrackingManager sharedInstance] + 144
18 XXContainerIOSDebug 0x000000010003d338 -[XXAppDelegate application:didFinishLaunchingWithOptions:] + 1212
19 UIKit 0x00000001880a1704 <redacted> + 400
20 UIKit 0x00000001882d0130 <redacted> + 2904
21 UIKit 0x00000001882d44b8 <redacted> + 1672
22 UIKit 0x00000001882d15c0 <redacted> + 168
23 FrontBoardServices 0x00000001848ef790 <redacted> + 184
24 FrontBoardServices 0x00000001848efb10 <redacted> + 56
25 CoreFoundation 0x00000001832f0efc <redacted> + 24
26 CoreFoundation 0x00000001832f0990 <redacted> + 540
27 CoreFoundation 0x00000001832ee690 <redacted> + 724
28 CoreFoundation 0x000000018321d680 CFRunLoopRunSpecific + 384
29 UIKit 0x000000018809a580 <redacted> + 460
30 UIKit 0x0000000188094d90 UIApplicationMain + 204
31 XXContainerIOSDebug 0x00000001000348a8 main + 124
32 libdyld.dylib 0x0000000182dbe8b8 <redacted> + 4
IMPORTANT: if you see this error, please send this log to help#realm.io.
It seems that I have a new error in my App update. This is a stack trace from Flurry Analytics. Any ideas what this means?
Full Stack Trace:
0 libobjc.A.dylib 0x1966fbbd0 _objc_msgSend + 16
1 Appname 0x1002f3c28 -[GADBannerView slotFinishedLoadingAdContent:] + 220
2 Appname 0x1002e3520 +[GADMacros runSynchronouslyOnMainThreadWithBlock:] + 64
3 Appname 0x1002f3bb0 -[GADBannerView slotFinishedLoadingAdContent:] + 100
4 Appname 0x1002f890c -[GADSlot adFinishedLoadingContent] + 56
5 Appname 0x1002eefc0 -[GADBannerWebViewDelegate webViewDidFinishLoad:] + 548
6 Appname 0x1003248c4 -[GADWebView webViewDidFinishLoad:] + 100
7 CoreFoundation 0x1860b7df0 <redacted> + 144
8 CoreFoundation 0x185fb665c -[NSInvocation invoke] + 296
9 CoreFoundation 0x185fbb1f0 -[NSInvocation invokeWithTarget:] + 68
10 WebKitLegacy 0x194835754 -[_WebSafeForwarder forwardInvocation:] + 172
11 CoreFoundation 0x1860b5c60 <redacted> + 440
12 CoreFoundation 0x185fbb08c __CF_forwarding_prep_0 + 92
13 CoreFoundation 0x1860b7df0 <redacted> + 144
14 CoreFoundation 0x185fb665c -[NSInvocation invoke] + 296
15 WebCore 0x1939ea8f4 <redacted> + 120
16 CoreFoundation 0x18606a324 <redacted> + 24
17 CoreFoundation 0x1860695c8 <redacted> + 264
18 CoreFoundation 0x186067678 <redacted> + 712
19 CoreFoundation 0x185f95664 _CFRunLoopRunSpecific + 396
20 GraphicsServices 0x18f0cf5a4 _GSEventRunModal + 168
21 UIKit 0x18a89a984 _UIApplicationMain + 1488
22 Appname 0x10010cd0c -[MainRowType .cxx_destruct] + 180
23 libdyld.dylib 0x196d56a08 <redacted> + 4
So the App is crashing by something the AdMob SDK does by itself?
I'm seeing crashlogs being generated containing the following call stack
Thread : Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x38a0a1f0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x38a74797 pthread_kill + 58
2 libsystem_c.dylib 0x389bafdd abort + 76
3 libsystem_malloc.dylib 0x38a32d67 free + 382
4 libobjc.A.dylib 0x3844e3ad object_dispose + 20
5 UIKit 0x305511ef -[UIViewAnimationState dealloc] + 174
6 libobjc.A.dylib 0x38456b6b objc_object::sidetable_release(bool) + 174
7 CoreFoundation 0x2dc2d93d CFRelease + 556
8 QuartzCore 0x30195635 CA::release_objects(X::List<void const*>*) + 16
9 QuartzCore 0x3019aad7 -[CAAnimation dealloc] + 54
10 libobjc.A.dylib 0x38456b6b objc_object::sidetable_release(bool) + 174
11 CoreFoundation 0x2dc2d93d CFRelease + 556
12 QuartzCore 0x3019d117 CA::Layer::run_animation_callbacks(void*) + 238
13 libdispatch.dylib 0x3892f81f _dispatch_client_callout + 22
14 libdispatch.dylib 0x3893649f _dispatch_main_queue_callback_4CF$VARIANT$mp + 278
15 CoreFoundation 0x2dcc78f1 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8
16 CoreFoundation 0x2dcc61c5 __CFRunLoopRun + 1300
17 CoreFoundation 0x2dc30f0f CFRunLoopRunSpecific + 522
18 CoreFoundation 0x2dc30cf3 CFRunLoopRunInMode + 106
19 GraphicsServices 0x32b52663 GSEventRunModal + 138
20 UIKit 0x3057c16d UIApplicationMain + 1136
21 Domino M 0x000c125f main (main.m:14)
Other threads only show the AFNetworking library doing something.
How can I find and fix issues like this (the ones that don't seem to have anything to do with self written code)?
I'm trying to analyze a log for what appears to be an intermittent crash.
Here's the stack trace for the thread that throws the exception:
Thread : Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x2ab5f49f __exceptionPreprocess + 126
1 libobjc.A.dylib 0x38315c8b objc_exception_throw + 38
2 CoreFoundation 0x2ab5f3e5 -[NSException initWithCoder:]
3 Foundation 0x2b862389 -[NSProxy doesNotRecognizeSelector:] + 68
4 CoreFoundation 0x2ab627d7 ___forwarding___ + 714
5 CoreFoundation 0x2aa94058 _CF_forwarding_prep_0 + 24
6 UIKit 0x292648cb -[UIScrollViewAccessibility _axCleanupDelegateClearer] + 98
7 UIKit 0x29264965 -[UIScrollViewAccessibility dealloc] + 60
8 UIKit 0x2e19c8b1 -[UITableView dealloc] + 1572
9 UIKit 0x2924dc91 -[UITableViewAccessibility dealloc] + 172
10 libobjc.A.dylib 0x38314da1 object_cxxDestructFromClass(objc_object*, objc_class*) + 116
11 libobjc.A.dylib 0x3831e5f7 objc_destructInstance + 34
12 libobjc.A.dylib 0x3831e61b object_dispose + 14
13 UIKit 0x2e3214d1 -[UIResponder dealloc] + 96
14 UIKit 0x2e18eb55 -[UIViewController dealloc] + 1760
15 CoreFoundation 0x2aa6600d CFRelease + 600
16 CoreFoundation 0x2aa7968f -[__NSArrayI dealloc] + 66
17 libobjc.A.dylib 0x3832fd5f objc_object::sidetable_release(bool) + 166
18 libobjc.A.dylib 0x383301a9 (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 404
19 CoreFoundation 0x2aa71149 _CFAutoreleasePoolPop + 16
20 UIKit 0x2e01789f _wrapRunLoopWithAutoreleasePoolHandler + 42
21 CoreFoundation 0x2ab25d95 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 20
22 CoreFoundation 0x2ab23453 __CFRunLoopDoObservers + 278
23 CoreFoundation 0x2ab2385b __CFRunLoopRun + 914
24 CoreFoundation 0x2aa713c1 CFRunLoopRunSpecific + 476
25 CoreFoundation 0x2aa711d3 CFRunLoopRunInMode + 106
26 GraphicsServices 0x31e6f0a9 GSEventRunModal + 136
27 UIKit 0x2e080fa1 UIApplicationMain + 1440
28 MyApp 0x000938b1 main (main.mm:21)
29 libdyld.dylib 0x38895aaf start + 2
And here's the stack trace for the main thread:
Thread : Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x3895bdfc __pthread_kill + 8
1 libsystem_pthread.dylib 0x389d9d37 pthread_kill + 62
2 libsystem_c.dylib 0x388fb909 abort + 76
3 libc++abi.dylib 0x37c399c9 __cxa_bad_cast
4 libc++abi.dylib 0x37c53671 default_unexpected_handler()
5 libobjc.A.dylib 0x38315f25 _objc_terminate() + 192
6 libc++abi.dylib 0x37c50de3 std::__terminate(void (*)()) + 78
7 libc++abi.dylib 0x37c508af __cxa_rethrow + 102
8 libobjc.A.dylib 0x38315dd3 objc_exception_rethrow + 42
9 CoreFoundation 0x2aa7145d CFRunLoopRunSpecific + 632
10 CoreFoundation 0x2aa711d3 CFRunLoopRunInMode + 106
11 GraphicsServices 0x31e6f0a9 GSEventRunModal + 136
12 UIKit 0x2e080fa1 UIApplicationMain + 1440
13 MyApp 0x000938b1 main (main.mm:21)
Looking through the trace with the exception, I see a CF_forwarding_prep_0 message, which is followed by an [NSProxy doesNotRecognizeSelector] exception. Reading that, is it a safe assumption that the cause of the issue is that there's a pointer to a tableview delegate that isn't being set to nil? That's about the only discernible thing I see here.
Any help would be most appreciated. Thanks!