My Xcode app has RevenueCat Purchases.configure(withAPIKey: "myApiKey") which runs fine in a device from Xcode. The same app crashes in TestFlight after 2 minutes even if left alone. I commented out Purchases.configure and it stopped crashing in TestFlight.
I need help.
2 Crash reports from my iPhone device:
Date/Time: 2022-06-29 13:51:48.0337 -0700
Launch Time: 2022-06-29 13:20:37.1510 -0700
OS Version: iPhone OS 15.5 (19F77)
Release Type: User
Baseband Version: 7.61.00
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Application Specific Information:
abort() called
Last Exception Backtrace:
0 CoreFoundation 0x18151fd0c __exceptionPreprocess + 216
1 libobjc.A.dylib 0x198d10ee4 objc_exception_throw + 56
2 CoreFoundation 0x18161e740 -[NSInvocation
retainArguments].cold.1 + 0
3 CoreFoundation 0x181617398 __CFReallocationFailed + 116
4 CoreFoundation 0x1814be03c __CFSafelyReallocate + 68
5 Foundation 0x182bcbff0 _convertJSONString + 208
6 Foundation 0x182bd9318 _writeJSONString + 80
7 Foundation 0x182c4a3cc ___writeJSONObject_block_invoke + 384
8 CoreFoundation 0x1814ca988 NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK + 16
9 CoreFoundation 0x1814e14f4 -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 208
10 Foundation 0x182bd0c38 _writeJSONObject + 468
11 Foundation 0x182c42978 -[_NSJSONWriter dataWithRootObject:options:] + 84
12 Foundation 0x182c11aa8 +[NSJSONSerialization dataWithJSONObject:options:error:] + 116
13 Purchases 0x1055ea8a0 0x1055d8000 + 75936
14 Purchases 0x1055e9584 0x1055d8000 + 71044
15 Purchases 0x1055e9478 0x1055d8000 + 70776
16 Purchases 0x1055e1540 0x1055d8000 + 38208
17 Purchases 0x1055fd680 0x1055d8000 + 153216
18 PurchasesCoreSwift 0x105646638 0x10562c000 + 108088
19 PurchasesCoreSwift 0x105645cc0 0x10562c000 + 105664
20 Purchases 0x1055f619c 0x1055d8000 + 123292
21 Purchases 0x1055fd314 0x1055d8000 + 152340
22 Purchases 0x1055fd198 0x1055d8000 + 151960
23 Purchases 0x1055fbe64 0x1055d8000 + 147044
24 Purchases 0x1055fd128 0x1055d8000 + 151848
25 Purchases 0x1055fc790 0x1055d8000 + 149392
26 Purchases 0x105601078 0x1055d8000 + 168056
27 StoreKit 0x1a9cf3d94 __48-[SKPaymentQueue
_updatedTransactions:restored:]_block_invoke_2 + 64
28 libdispatch.dylib 0x1811df094 _dispatch_call_block_and_release + 24
29 libdispatch.dylib 0x1811e0094 _dispatch_client_callout + 16
30 libdispatch.dylib 0x1811c1858 _dispatch_main_queue_drain + 888
31 libdispatch.dylib 0x1811c14d0
_dispatch_main_queue_callback_4CF$VARIANT$armv81 + 36
32 CoreFoundation 0x1814db0c4 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 12
33 CoreFoundation 0x1814985e8 __CFRunLoopRun + 2544
34 CoreFoundation 0x1814ab240 CFRunLoopRunSpecific + 572
35 GraphicsServices 0x1a1fad988 GSEventRunModal + 160
36 UIKitCore 0x183cab41c -[UIApplication _run] + 1080
37 UIKitCore 0x183a44b88 UIApplicationMain + 336
38 libswiftUIKit.dylib 0x197dfaee4 UIApplicationMain(::::) + 100
39 VGravesite 0x104953858 0x10494c000 + 30808
40 dyld 0x104e5c3d0 start + 444
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x1bbd0fbbc __pthread_kill + 8
1 libsystem_pthread.dylib 0x1dc763854 pthread_kill + 208
2 libsystem_c.dylib 0x18bc006ac abort + 124
3 libc++abi.dylib 0x198e08dd8 abort_message + 128
4 libc++abi.dylib 0x198df955c demangling_terminate_handler() + 300
5 libobjc.A.dylib 0x198d168f8 _objc_terminate() + 124
6 libc++abi.dylib 0x198e08274 std::__terminate(void (*)()) + 16
7 libc++abi.dylib 0x198e0821c std::terminate() + 60
8 libdispatch.dylib 0x1811e00a8 _dispatch_client_callout + 36
9 libdispatch.dylib 0x1811c1858 _dispatch_main_queue_drain + 888
10 libdispatch.dylib 0x1811c14d0 _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 36
11 CoreFoundation 0x1814db0c4 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 12
12 CoreFoundation 0x1814985e8 __CFRunLoopRun + 2544
13 CoreFoundation 0x1814ab240 CFRunLoopRunSpecific + 572
14 GraphicsServices 0x1a1fad988 GSEventRunModal + 160
15 UIKitCore 0x183cab41c -[UIApplication _run] + 1080
16 UIKitCore 0x183a44b88 UIApplicationMain + 336
17 libswiftUIKit.dylib 0x197dfaee4 UIApplicationMain(::::) + 100
18 VGravesite 0x104953858 0x10494c000 + 30808
19 dyld 0x104e5c3d0 start + 444
======================================
Date/Time: 2022-06-29 14:26:58.5713 -0700
Launch Time: 2022-06-29 14:25:59.1190 -0700
OS Version: iPhone OS 15.5 (19F77)
Release Type: User
Baseband Version: 7.61.00
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Application Specific Information:
abort() called
Kernel Triage:
VM - Compressor failed a blocking pager_get
VM - Compressor failed a blocking pager_get
VM - Compressor failed a blocking pager_get
VM - Compressor failed a blocking pager_get
VM - Compressor failed a blocking pager_get
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x1bbd0fbbc __pthread_kill + 8
1 libsystem_pthread.dylib 0x1dc763854 pthread_kill + 208
2 libsystem_c.dylib 0x18bc006ac abort + 124
3 libc++abi.dylib 0x198e08dd8 abort_message + 128
4 libc++abi.dylib 0x198df955c demangling_terminate_handler() + 300
5 libobjc.A.dylib 0x198d168f8 _objc_terminate() + 124
6 libc++abi.dylib 0x198e08274 std::__terminate(void (*)()) + 16
7 libc++abi.dylib 0x198e0821c std::terminate() + 60
8 libdispatch.dylib 0x1811e00a8 _dispatch_client_callout + 36
9 libdispatch.dylib 0x1811c1858 _dispatch_main_queue_drain + 888
10 libdispatch.dylib 0x1811c14d0
_dispatch_main_queue_callback_4CF$VARIANT$armv81 + 36
11 CoreFoundation 0x1814db0c4 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 12
12 CoreFoundation 0x1814985e8 __CFRunLoopRun + 2544
13 CoreFoundation 0x1814ab240 CFRunLoopRunSpecific + 572
14 GraphicsServices 0x1a1fad988 GSEventRunModal + 160
15 UIKitCore 0x183cab41c -[UIApplication _run] + 1080
16 UIKitCore 0x183a44b88 UIApplicationMain + 336
17 libswiftUIKit.dylib 0x197dfaee4 UIApplicationMain(::::) + 100
18 VGravesite 0x1007cb858 0x1007c4000 + 30808
19 dyld 0x100e703d0 start + 444
Related
I developed a marketplace app using Expo. It works fine on Expo Go both on Android and iOS, as well as a standalone app for Android. The problem is when I build a .tar for iOS simulator or when I upload to Testflight to test it. Then it crashes right after showing the splash screen. I use a managed workflow, and I think I followed all the instructions.
Here's the crash log:
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
*** Terminating app due to uncaught exception 'ExpoFatalError', reason: 'Expo encountered a fatal error: Unhandled JS Exception: Invariant Violation: Native module cannot be null.'
terminating with uncaught exception of type NSException
abort() called
CoreSimulator 757.5 - Device: iPhone 12 (0D59D0C0-2D3B-40ED-A8E2-DA0B1417C29C) - Runtime: iOS 14.5 (18E182) - DeviceType: iPhone 12
Application Specific Backtrace 1:
0 CoreFoundation 0x00007fff20422fba __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff20193ff5 objc_exception_throw + 48
2 ComGrabbiGrabbiapp 0x000000010b375821 -[EXAppViewController maybeShowError:] + 506
3 ComGrabbiGrabbiapp 0x000000010b396dce handleFatalReactError_block_invoke_2 + 574
4 libdispatch.dylib 0x00007fff201078df _dispatch_client_callout + 8
5 libdispatch.dylib 0x00007fff201156ca _dispatch_async_and_wait_invoke + 109
6 libdispatch.dylib 0x00007fff201078df _dispatch_client_callout + 8
7 libdispatch.dylib 0x00007fff20114a27 _dispatch_main_queue_callback_4CF + 1045
8 CoreFoundation 0x00007fff203908f8 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
9 CoreFoundation 0x00007fff2038b169 __CFRunLoopRun + 2781
10 CoreFoundation 0x00007fff2038a1a7 CFRunLoopRunSpecific + 567
11 GraphicsServices 0x00007fff2b874d85 GSEventRunModal + 139
12 UIKitCore 0x00007fff246c14df -[UIApplication _run] + 912
13 UIKitCore 0x00007fff246c639c UIApplicationMain + 101
14 ComGrabbiGrabbiapp 0x000000010b1461d0 main + 80
15 libdyld.dylib 0x00007fff2025abbd start + 1
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff60309946 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff60343615 pthread_kill + 263
2 libsystem_c.dylib 0x00007fff200fbd4f __abort + 139
3 libsystem_c.dylib 0x00007fff200fbcc4 abort + 135
4 libc++abi.dylib 0x00007fff20254692 abort_message + 241
5 libc++abi.dylib 0x00007fff20245dfd demangling_terminate_handler() + 266
6 libobjc.A.dylib 0x00007fff20179ace _objc_terminate() + 96
7 libc++abi.dylib 0x00007fff20253aa7 std::__terminate(void (*)()) + 8
8 libc++abi.dylib 0x00007fff20253a49 std::terminate() + 41
9 libdispatch.dylib 0x00007fff201078f3 _dispatch_client_callout + 28
10 libdispatch.dylib 0x00007fff201156ca _dispatch_async_and_wait_invoke + 109
11 libdispatch.dylib 0x00007fff201078df _dispatch_client_callout + 8
12 libdispatch.dylib 0x00007fff20114a27 _dispatch_main_queue_callback_4CF + 1045
13 com.apple.CoreFoundation 0x00007fff203908f8 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
14 com.apple.CoreFoundation 0x00007fff2038b169 __CFRunLoopRun + 2781
15 com.apple.CoreFoundation 0x00007fff2038a1a7 CFRunLoopRunSpecific + 567
16 com.apple.GraphicsServices 0x00007fff2b874d85 GSEventRunModal + 139
17 com.apple.UIKitCore 0x00007fff246c14df -[UIApplication _run] + 912
18 com.apple.UIKitCore 0x00007fff246c639c UIApplicationMain + 101
19 com.grabbi.grabbiapp 0x000000010b1461d0 main + 80
20 libdyld.dylib 0x00007fff2025abbd start + 1
Okay after a weekend of debugging I fixed it. I had my main app component (in Expo) wrapped in a Stripe Provider component. Since I wasn't using Stripe but Paypal for checkout, I deleted the Stripe wrapper and now it works.
if(fontsLoaded){
return (
<StripeProvider
publishableKey="xxxxxxxxxxxxxxxxx"
urlScheme="your-url-scheme" // required for 3D Secure and bank redirects
merchantIdentifier="merchant.com.{{YOUR_APP_NAME}}" // required for Apple Pay
>
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<RootRouter />
</PersistGate>
</Provider>
</StripeProvider>
);
I tested my iOS app thoroughly in my device and there ware no crash but when I submitted the app for release it crashes repeatedly. I tried to analyze I couldn't find the reason. When I look the creash log it looks crash happens in
Hardware Model: xxx
Process: MyAppName [14002]
Path: /private/var/containers/Bundle/Application/6ED37E47-5605-432E-B077-B6B109B9FE1B/MyAppName.app/MyAppName
Identifier: com.mydomain.MyAppName
Version: 1 (1.0.0)
AppStoreTools: 10B63
Code Type: ARM-64 (Native)
Role: Non UI
Parent Process: launchd [1]
Coalition: com.mydomain.MyAppName [5310]
Date/Time: 2019-03-07 09:24:56.9034 -0800
Launch Time: 2019-03-07 09:20:00.9801 -0800
OS Version: iPhone OS 12.1.4 (16D57)
Baseband Version: 7.32.00
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Application Specific Information:
abort() called
Last Exception Backtrace:
0 CoreFoundation 0x182ef1ea4 __exceptionPreprocess + 228
1 libobjc.A.dylib 0x1820c1a50 objc_exception_throw + 55
2 UIKitCore 0x1af72def0 -[UIPopoverPresentationController presentationTransitionWillBegin] + 2691
3 UIKitCore 0x1af736f28 __71-[UIPresentationController _initViewHierarchyForPresentationSuperview:]_block_invoke + 2195
4 UIKitCore 0x1af7348ac __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 479
5 UIKitCore 0x1afddc87c _runAfterCACommitDeferredBlocks + 295
6 UIKitCore 0x1afdca878 _cleanUpAfterCAFlushAndRunDeferredBlocks + 383
7 UIKitCore 0x1afdf9880 _afterCACommitHandler + 131
8 CoreFoundation 0x182e816bc __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 31
9 CoreFoundation 0x182e7c350 __CFRunLoopDoObservers + 411
10 CoreFoundation 0x182e7c8f0 __CFRunLoopRun + 1263
11 CoreFoundation 0x182e7c0e0 CFRunLoopRunSpecific + 435
12 GraphicsServices 0x1850f5584 GSEventRunModal + 99
13 UIKitCore 0x1afdd0c00 UIApplicationMain + 211
14 MyAppName 0x100e601fc main + 33276 (ChildInfoViewController.swift:15)
15 libdyld.dylib 0x18293abb4 start + 3
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000182a87104 __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000182b03020 pthread_kill$VARIANT$mp + 380
2 libsystem_c.dylib 0x00000001829ded78 abort + 140
3 libc++abi.dylib 0x00000001820a8f78 __cxa_bad_cast + 0
4 libc++abi.dylib 0x00000001820a9120 default_unexpected_handler+ 8480 () + 0
5 libobjc.A.dylib 0x00000001820c1e58 _objc_terminate+ 28248 () + 124
6 libc++abi.dylib 0x00000001820b50fc std::__terminate(void (*)+ 57596 ()) + 16
7 libc++abi.dylib 0x00000001820b4cec __cxa_rethrow + 144
8 libobjc.A.dylib 0x00000001820c1c20 objc_exception_rethrow + 44
9 CoreFoundation 0x0000000182e7c14c CFRunLoopRunSpecific + 544
10 GraphicsServices 0x00000001850f5584 GSEventRunModal + 100
11 UIKitCore 0x00000001afdd0c00 UIApplicationMain + 212
12 MyAppName 0x0000000100e601fc main + 33276 (ChildInfoViewController.swift:15)
13 libdyld.dylib 0x000000018293abb4 start + 4
I got a crash for my own app on my iPhone, and am trying to figure out what happened. Here is the relevant part from the crash log in Xcode (sorry for the poor formatting):
Exception Type: EXC_CRASH (SIGABRT) Exception Codes:
0x0000000000000000, 0x0000000000000000 Exception Note:
EXC_CORPSE_NOTIFY Triggered by Thread: 0
Application Specific Information: abort() called
Filtered syslog: None found
Last Exception Backtrace: 0 CoreFoundation
0x1828c2d8c exceptionPreprocess + 228 1 libobjc.A.dylib
0x181a7c5ec objc_exception_throw + 55 2 CoreFoundation
0x1828d0098 -[NSObject+ 1388696 (NSObject) doesNotRecognizeSelector:]
+ 139 3 CoreFoundation 0x1828c85c8 ___forwarding_ + 1379 4 CoreFoundation 0x1827ae41c _CF_forwarding_prep_0 + 91 5 MyApp 0x102c33a0c 0x102bf0000 + 277004 6 MyApp
0x102c39d9c 0x102bf0000 + 302492 7 MyApp
0x102c1bed8 0x102bf0000 + 179928 8 MyApp
0x102c0754c 0x102bf0000 + 95564 9 libdispatch.dylib
0x1821b4aa0 _dispatch_call_block_and_release + 23 10
libdispatch.dylib 0x1821b4a60 _dispatch_client_callout +
15 11 libdispatch.dylib 0x1821f5bcc
_dispatch_main_queue_callback_4CF$VARIANT$armv81 + 527 12 CoreFoundation 0x18286b070
CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 11 13 CoreFoundation 0x182868bc8 __CFRunLoopRun + 2271 14
CoreFoundation 0x182788da8 CFRunLoopRunSpecific + 551
15 GraphicsServices 0x18476e020 GSEventRunModal + 99 16
UIKit 0x18c7a8758 UIApplicationMain + 235 17
MyApp 0x102bf48f4 0x102bf0000 + 18676 18
libdyld.dylib 0x182219fc0 start + 3
Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0
Crashed: 0 libsystem_kernel.dylib 0x00000001823492e0
pthread_kill + 8 1 libsystem_pthread.dylib 0x00000001824ee6a8 pthread_kill$VARIANT$armv81 + 360 2
libsystem_c.dylib 0x00000001822b7d0c abort + 140 3
libc++abi.dylib 0x0000000181a532c8 __cxa_bad_cast + 0 4
libc++abi.dylib 0x0000000181a53470
default_unexpected_handler+ 5232 () + 0 5 libobjc.A.dylib
0x0000000181a7c8d4 _objc_terminate+ 35028 () + 124 6
libc++abi.dylib 0x0000000181a6d37c
std::__terminate(void ()+ 111484 ()) + 16 7 libc++abi.dylib
0x0000000181a6cccc __cxxabiv1::exception_cleanup_func+ 109772
(_Unwind_Reason_Code, _Unwind_Exception) + 0 8 libobjc.A.dylib
0x0000000181a7c720 _objc_exception_destructor+ 34592 (void*) + 0 9
CoreFoundation 0x00000001828d0098
__methodDescriptionForSelector + 0 10 CoreFoundation 0x00000001828c85c8 ___forwarding_ + 1380 11 CoreFoundation
0x00000001827ae41c _CF_forwarding_prep_0 + 92 12 MyApp
0x0000000102c33a0c 0x102bf0000 + 277004 13 MyApp 0x0000000102c39d9c 0x102bf0000 + 302492 14 MyApp 0x0000000102c1bed8 0x102bf0000 + 179928 15 MyApp 0x0000000102c0754c 0x102bf0000 + 95564 16 libdispatch.dylib 0x00000001821b4aa0 _dispatch_call_block_and_release + 24 17
libdispatch.dylib 0x00000001821b4a60
_dispatch_client_callout + 16 18 libdispatch.dylib 0x00000001821f5bcc _dispatch_main_queue_callback_4CF$VARIANT$armv81 +
528 19 CoreFoundation 0x000000018286b070
CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 12 20 CoreFoundation 0x0000000182868bc8 __CFRunLoopRun +
2272 21 CoreFoundation 0x0000000182788da8
CFRunLoopRunSpecific + 552 22 GraphicsServices
0x000000018476e020 GSEventRunModal + 100 23 UIKit
0x000000018c7a8758 UIApplicationMain + 236 24 MyApp
0x0000000102bf48f4 0x102bf0000 + 18676 25 libdyld.dylib 0x0000000182219fc0 start + 4
So I do see some errors but they are all non-specific, not pointing to a specific call.
Can I extract more info from this log or somewhere else to figure out what could have gone wrong?
How to resolve "SpringBoard quit unexpected" issues?
I don't use Test Cloud, would anyone be able to explain in detail what is happening?
Process: SpringBoard [7365] Path:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/CoreServices/SpringBoard.app/SpringBoard
Identifier: SpringBoard Version: 1.0 (50) Code Type: X86 (Native)
Parent Process: launchd_sim [7247] Responsible: launchd_sim [7247]
User ID: 501
Date/Time: 2015-07-12 18:27:14.767 +0700 OS Version: Mac OS X 10.10.4
(14E46) Report Version: 11 Anonymous UUID:
4F86C8E2-284F-6FD5-30D3-E2519C6D5409
Time Awake Since Boot: 36000 seconds
Crashed Thread: 8 Dispatch queue:
com.apple.frontboard.applicationLibrary.taskQueue
Exception Type: EXC_CRASH (SIGABRT) Exception Codes:
0x0000000000000000, 0x0000000000000000
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Application is required.'
terminating with uncaught exception of type NSException abort() called
CoreSimulator 110.4 - Device: iPhone 4s - Runtime: iOS 8.1 (12B411) -
DeviceType: iPhone 4s
Application Specific Backtrace 1: 0 CoreFoundation 0x0821c946
exceptionPreprocess + 182 1 libobjc.A.dylib 0x07cffa97
objc_exception_throw + 44 2 CoreFoundation 0x0821c7da +[NSException
raise:format:arguments:] + 138 3 Foundation 0x04059810
-[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 118 4
FrontBoard 0x01d09b66 __47-[FBApplicationLibrary
applicationsDidInstall:]block_invoke_2 + 335 5 FrontBoard 0x01d0998f
__47-[FBApplicationLibrary applicationsDidInstall:]_block_invoke + 1784 6 libdispatch.dylib 0x087f303f _dispatch_client_callout + 14 7
libdispatch.dylib 0x087dadb8 _dispatch_barrier_sync_f_invoke + 79 8
libdispatch.dylib 0x087da8ea dispatch_barrier_sync_f + 105 9
libdispatch.dylib 0x087dae40 dispatch_barrier_sync + 54 10 FrontBoard
0x01d091ca -[FBApplicationLibrary applicationsDidInstall:] + 292 11
MobileCoreServices 0x060e5ce9 -[LSApplicationWorkspaceRemoteObserver
applicationsDidInstall:] + 233 12 CoreFoundation 0x080ff76d __invoking
+ 29 13 CoreFoundation 0x080ff618 -[NSInvocation invoke] + 360 14 Foundation 0x041913fd
NSXPCCONNECTION_IS_CALLING_OUT_TO_EXPORTED_OBJECT + 30 15 Foundation
0x0401f568 -[NSXPCConnection _decodeAndInvokeMessageWithData:] + 1881
16 Foundation 0x0401bbb5 message_handler + 721 17 Foundation
0x0401b8cd __51-[NSXPCConnection
initWithMachServiceName:options:]_block_invoke + 20 18 libxpc.dylib
0x08ac1973 _xpc_connection_call_event_handler + 65 19 libxpc.dylib
0x08ac1779 _xpc_connection_mach_event + 2278 20 libdispatch.dylib
0x087f3121 _dispatch_client_callout4 + 37 21 libdispatch.dylib
0x087e35a9 _dispatch_mach_msg_invoke + 318 22 libdispatch.dylib
0x087dbc1b _dispatch_queue_drain + 527 23 libdispatch.dylib 0x087e3ab7
_dispatch_mach_invoke + 225 24 libdispatch.dylib 0x087dbc1b _dispatch_queue_drain + 527 25 libdispatch.dylib 0x087db8ac _dispatch_queue_invoke + 197 26 libdispatch.dylib 0x087dd9e7 _dispatch_root_queue_drain + 367 27 libdispatch.dylib 0x087de985 _dispatch_worker_thread3 + 108 28 libsystem_pthread.dylib 0x08b491da _pthread_wqthread + 724 29 libsystem_pthread.dylib 0x08b46e2e start_wqthread + 30
Thread 0:: Dispatch queue: com.apple.main-thread 0
libsystem_kernel.dylib 0x08b169ce mach_msg_trap + 10 1
libsystem_kernel.dylib 0x08b15a70 mach_msg + 68 2
com.apple.CoreFoundation 0x08136026 __CFRunLoopServiceMachPort + 214 3
com.apple.CoreFoundation 0x08135408 __CFRunLoopRun + 1400 4
com.apple.CoreFoundation 0x08134bcb CFRunLoopRunSpecific + 443 5
com.apple.CoreFoundation 0x081349fb CFRunLoopRunInMode + 123 6
com.apple.GraphicsServices 0x043ef24f GSEventRunModal + 192 7
com.apple.GraphicsServices 0x043ef08c GSEventRun + 104 8
com.apple.UIKit 0x0096d8b6 UIApplicationMain + 1526 9
com.apple.springboard 0x0007e4b0 0x76000 + 33968 10 libdyld.dylib
0x08819ac9 start + 1
Thread 1:: Dispatch queue: com.apple.libdispatch-manager 0
libsystem_kernel.dylib 0x08b1d8ce kevent64 + 10 1 libdispatch.dylib
0x087e23be _dispatch_mgr_invoke + 245 2 libdispatch.dylib 0x087e2116
_dispatch_mgr_thread + 60
Thread 2: 0 libsystem_kernel.dylib 0x08b169ce mach_msg_trap + 10 1
libsystem_kernel.dylib 0x08b15a70 mach_msg + 68 2
com.apple.CoreFoundation 0x08136026 CFRunLoopServiceMachPort + 214 3
com.apple.CoreFoundation 0x08135408 __CFRunLoopRun + 1400 4
com.apple.CoreFoundation 0x08134bcb CFRunLoopRunSpecific + 443 5
com.apple.CoreFoundation 0x081349fb CFRunLoopRunInMode + 123 6
com.apple.Foundation 0x03fecd98 -[NSRunLoop(NSRunLoop)
runMode:beforeDate:] + 309 7 com.apple.Foundation 0x0408c67b
-[NSRunLoop(NSRunLoop) run] + 82 8 com.apple.UIKit 0x00ea982b -[UIStatusBarServerThread main] + 796 9 com.apple.Foundation 0x03feae60 __NSThread__main + 1326 10 libsystem_pthread.dylib
0x08b48e13 _pthread_body + 138 11 libsystem_pthread.dylib 0x08b48d89
_pthread_start + 162 12 libsystem_pthread.dylib 0x08b46e52 thread_start + 34
Thread 3: 0 libsystem_kernel.dylib 0x08b169ce mach_msg_trap + 10 1
libsystem_kernel.dylib 0x08b15a70 mach_msg + 68 2
com.apple.CoreFoundation 0x08136026 __CFRunLoopServiceMachPort + 214 3
com.apple.CoreFoundation 0x08135408 __CFRunLoopRun + 1400 4
com.apple.CoreFoundation 0x08134bcb CFRunLoopRunSpecific + 443 5
com.apple.CoreFoundation 0x081349fb CFRunLoopRunInMode + 123 6
com.apple.springboard 0x000f5592 0x76000 + 521618 7
libsystem_pthread.dylib 0x08b48e13 _pthread_body + 138 8
libsystem_pthread.dylib 0x08b48d89 _pthread_start + 162 9
libsystem_pthread.dylib 0x08b46e52 thread_start + 34xamarin.
I'm finding it impossible to solve.
my application keep crashing when i try to open notifications by clicking on notification badge..i got the following crash report
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x24d33132 __exceptionPreprocess + 122
1 libobjc.A.dylib 0x32c8fc72 objc_exception_throw + 34
2 CoreFoundation 0x24d385f8 -[NSObject(NSObject) doesNotRecognizeSelector:] + 184
3 CoreFoundation 0x24d364d4 ___forwarding___ + 708
4 CoreFoundation 0x24c659d4 _CF_forwarding_prep_0 + 20
5 Skopic 0x000f7062 -[AppDelegate application:didReceiveRemoteNotification:] (AppDelegate.m:209)
6 UIKit 0x285d8c7c -[UIApplication _handleNonLaunchSpecificActions:forScene:withTransitionContext:] + 1836
7 UIKit 0x285d06a2 -[UIApplication workspace:didReceiveActions:] + 102
8 FrontBoardServices 0x2b7ccebc __31-[FBSSerialQueue performAsync:]_block_invoke_2 + 12
9 CoreFoundation 0x24cf9250 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 8
10 CoreFoundation 0x24cf8514 __CFRunLoopDoBlocks + 212
11 CoreFoundation 0x24cf706e __CFRunLoopRun + 1710
12 CoreFoundation 0x24c4299c CFRunLoopRunSpecific + 472
13 CoreFoundation 0x24c427ae CFRunLoopRunInMode + 102
14 GraphicsServices 0x2c3f41a4 GSEventRunModal + 132
15 UIKit 0x283cd690 UIApplicationMain + 1436
16 Skopic 0x000f46fc main (main.m:15)
17 libdyld.dylib 0x33237aaa tlv_initializer + 2
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x332fddf0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x3337ec92 pthread_kill + 58
2 libsystem_c.dylib 0x3329c934 abort + 72
3 libc++abi.dylib 0x3249bbb8 abort_message + 84
4 libc++abi.dylib 0x324b566a default_terminate_handler() + 262
5 libobjc.A.dylib 0x32c8ff0e _objc_terminate() + 190
6 libc++abi.dylib 0x324b2dec std::__terminate(void (*)()) + 76
7 libc++abi.dylib 0x324b28b4 __cxa_rethrow + 96
8 libobjc.A.dylib 0x32c8fdba objc_exception_rethrow + 38
9 CoreFoundation 0x24c42a38 CFRunLoopRunSpecific + 628
10 CoreFoundation 0x24c427ae CFRunLoopRunInMode + 102
11 GraphicsServices 0x2c3f41a4 GSEventRunModal + 132
12 UIKit 0x283cd690 UIApplicationMain + 1436
13 Skopic 0x000f46fc main (main.m:15)
14 libdyld.dylib 0x33237aac start + 0
can someone explain why these crashes keep occurring?
I don't think it makes sense to turn the NSDictionary into another NSDictionary with [NSDictionary dictionaryWithDictionary:] ... also NSDictionary can be non-nil but contain 0 key entries (an empty dictionary).
Perhaps you want: NSDictionary *apnsPayload = [userInfo objectForKey: #"alert"]; ?
See: