App Crash on Testflight

Good day. My app crashed as i launched to testflight. when it is launched on a real devices it crashes

here is my crash report.

Incident Identifier: 6B2FE0C7-91F8-46D3-90B5-EB96A6809C5C Hardware Model: iPhone12,5 Process: Runner [39554] Path: /private/var/containers/Bundle/Application/D413442F-1978-4F6F-909C-A09EAE720D44/Runner.app/Runner Identifier: com.gtirides.appRide Version: 1.0.0 (1) AppStoreTools: 15F31e AppVariant: 1:iPhone12,5:16 Beta: YES Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd [1] Coalition: com.gtirides.appRide [4745]

Date/Time: 2024-06-20 13:07:17.1843 +0100 Launch Time: 2024-06-20 13:07:16.9994 +0100 OS Version: iPhone OS 16.5.1 (20F770750d) Release Type: User Baseband Version: 4.02.01 Report Version: 104

Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000 Exception Codes: 0x0000000000000001, 0x0000000000000000 VM Region Info: 0 is not in any region. Bytes before following region: 4301684736 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START --->
__TEXT 100668000-100670000 [ 32K] r-x/r-x SM=COW ...er.app/Runner Termination Reason: SIGNAL 11 Segmentation fault: 11 Terminating Process: exc handler [39554]

Triggered by Thread: 0

Thread 0 Crashed: 0 Intercom 0x0000000100e94610 +[ICMIdentityStore hexTokenFromDeviceToken:] + 32 1 Intercom 0x0000000100e946bc -[ICMIdentityStore setDeviceTokenData:environment:failure:] + 80 2 Intercom 0x0000000100ebb320 +[ICMHTTPBridge registerDeviceToken:failure:] + 116 3 Intercom 0x0000000100ea7bdc +[ICMBridge registerDeviceToken:failure:] + 112

While seeing the complete crash log would be helpful, based on the snippet you posted the crash is occurring at [ICMIdentityStore hexTokenFromDeviceToken:]

Whomever is responsible for that function should debug it. Typically we see these in code where assumptions are made about the format or the length of the device token.

App Crash on Testflight
 
 
Q