iOS 15: Signal 9 immediately as app enters the background

It appears that our users with iOS 15 are experiencing a crash as soon as the app enters the background. I can replicate this while debugging in Xcode simply by swiping to view to the home screen and waiting a few seconds. Message from debugger: Terminated due to signal 9

The logs don't appear to show an error in the apps code:

Exception Type:  EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Triggered by Thread:  0


Thread 0 name:
Thread 0 Crashed:
0   libsystem_kernel.dylib        	0x00000001b7752564 mach_msg_trap + 8
1   libsystem_kernel.dylib        	0x00000001b7752bfc mach_msg + 76 (mach_msg.c:119)
2   CoreFoundation                	0x0000000180c7a698 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3   CoreFoundation                	0x0000000180c7e98c __CFRunLoopRun + 1212 (CFRunLoop.c:3000)
4   CoreFoundation                	0x0000000180c923c8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5   GraphicsServices              	0x000000019c4a338c GSEventRunModal + 164 (GSEvent.c:2200)
6   UIKitCore                     	0x00000001836380bc -[UIApplication _run] + 1100 (UIApplication.m:3457)
7   UIKitCore                     	0x00000001833b5be8 UIApplicationMain + 2124 (UIApplication.m:5013)
8   VaultRE                       	0x0000000101b40600 0x100f10000 + 12781056
9   dyld                          	0x00000001024f5a24 start + 520 (dyldMain.cpp:876)

Funnily enough, if I disable the Debug executable option from the schema I no longer experience this crash. How/If this relates to the compiled executable is unclear to me

Any ideas? Regards

Accepted Answer

It appears to be do with the RealmSwift Cocoapods package I am using. Seems to resolved after updating that dependency to the latest version.

iOS 15: Signal 9 immediately as app enters the background
 
 
Q