App unexpectedly crashes after installation from testflight

I've an app running for some time in the Appstore now. Recently I had to renew my singing certficicates to be able to publish my app again. I renewed the certificates, updated my provisioning profile and signed a new app version to publish only to find out that the app crashes during the splash screen.

I added new features to the app so my first thought was that there would be an issue there. To test that, I built the latest stable version of the app and signed it with the new profivisioning profile. The result was exactly the same crash as the new build.

My assumption is that the crash is caused by bad signing (?) but I am not sure because I'm lacking experience on that front. I do have a crash report from testflight and logs from the device where the app crashed.

Testflight crash:

Incident Identifier: 73A178E3-04E1-4898-A30E-FB3544184269
Distributor ID:      com.apple.TestFlight
Hardware Model:      iPhone11,8
Process:             Vriendendienstje.Platform.App [1338]
Path:                /private/var/containers/Bundle/Application/71C356AC-A2E3-46FE-B9EE-67BC1E5E9BD2/Vriendendienstje.Platform.App.app/Vriendendienstje.Platform.App
Identifier:          vriendendienstje
Version:             3.1.6 (73)
AppStoreTools:       16B39
AppVariant:          1:iPhone11,8:18
Beta:                YES
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           vriendendienstje [556]

Date/Time:           2024-10-31 10:42:30.9856 +0100
Launch Time:         2024-10-31 10:42:28.0275 +0100
OS Version:          iPhone OS 18.0.1 (22A3370)
Release Type:        User
Baseband Version:    7.00.00
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: ****** 6 Abort trap: 6
Terminating Process: Vriendendienstje.Platform.App [1338]

Triggered by Thread:  0


Thread 0 name:
Thread 0 name:
Thread 0 Crashed:
0   libsystem_kernel.dylib          0x00000001d3c9f274 __pthread_kill + 8
1   libsystem_pthread.dylib         0x000000020b1c2ef8 pthread_kill + 268 (pthread.c:1721)
2   libsystem_c.dylib               0x000000018bbb3ad8 abort + 128 (abort.c:122)
3   Vriendendienstje.Platform.App   0x0000000104ef40e0 0x10467c000 + 8880352
4   Vriendendienstje.Platform.App   0x0000000104e75f00 0x10467c000 + 8363776
5   libsystem_platform.dylib        0x000000020b10dafc _sigtramp + 56 (sigtramp.c:116)
6   libsystem_pthread.dylib         0x000000020b1c2ef8 pthread_kill + 268 (pthread.c:1721)
7   libsystem_c.dylib               0x000000018bbb3ad8 abort + 128 (abort.c:122)
8   Vriendendienstje.Platform.App   0x0000000104ba6114 0x10467c000 + 5415188
9   Vriendendienstje.Platform.App   0x0000000104dac0ec 0x10467c000 + 7536876
10  Vriendendienstje.Platform.App   0x0000000104e4c074 0x10467c000 + 8192116
11  Vriendendienstje.Platform.App   0x0000000104bb8ac4 0x10467c000 + 5491396
12  Vriendendienstje.Platform.App   0x0000000104eb4880 0x10467c000 + 8620160
13  dyld                            0x00000001a9624d34 start + 2724 (dyldMain.cpp:1334)

Thread 1:
0   libsystem_pthread.dylib         0x000000020b1bc480 start_wqthread + 0 (:-1)

Thread 2:
0   libsystem_pthread.dylib         0x000000020b1bc480 start_wqthread + 0 (:-1)

Thread 3 name:
Thread 3:
0   libsystem_kernel.dylib          0x00000001d3c9a030 __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib         0x000000020b1bea50 _pthread_cond_wait + 1204 (pthread_cond.c:862)
2   Vriendendienstje.Platform.App   0x0000000104d864f8 0x10467c000 + 7382264
3   libsystem_pthread.dylib         0x000000020b1c137c _pthread_start + 136 (pthread.c:931)
4   libsystem_pthread.dylib         0x000000020b1bc494 thread_start + 8 (:-1)

Thread 4 name:
Thread 4:
0   libsystem_kernel.dylib          0x00000001d3c946a4 semaphore_wait_trap + 8 (:-1)
1   Vriendendienstje.Platform.App   0x0000000104e26944 0x10467c000 + 8038724
2   Vriendendienstje.Platform.App   0x0000000104e03388 0x10467c000 + 7893896
3   libsystem_pthread.dylib         0x000000020b1c137c _pthread_start + 136 (pthread.c:931)
4   libsystem_pthread.dylib         0x000000020b1bc494 thread_start + 8 (:-1)

Thread 5:
0   libsystem_pthread.dylib         0x000000020b1bc480 start_wqthread + 0 (:-1)

Thread 6:
0   libsystem_pthread.dylib         0x000000020b1bc480 start_wqthread + 0 (:-1)

Thread 7:
0   libsystem_pthread.dylib         0x000000020b1bc480 start_wqthread + 0 (:-1)

Thread 8:
0   libsystem_pthread.dylib         0x000000020b1bc480 start_wqthread + 0 (:-1)

Thread 9:
0   libsystem_pthread.dylib         0x000000020b1bc480 start_wqthread + 0 (:-1)

Thread 10 name:
Thread 10:
0   libsystem_kernel.dylib          0x00000001d3c94728 mach_msg2_trap + 8 (:-1)
1   libsystem_kernel.dylib          0x00000001d3c97e38 mach_msg2_internal + 80 (mach_msg.c:201)
2   libsystem_kernel.dylib          0x00000001d3c97d50 mach_msg_overwrite + 424 (mach_msg.c:0)
3   libsystem_kernel.dylib          0x00000001d3c97b9c mach_msg + 24 (mach_msg.c:323)
4   CoreFoundation                  0x0000000183e517cc __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2617)
5   CoreFoundation                  0x0000000183e50e78 __CFRunLoopRun + 1212 (CFRunLoop.c:3001)
6   CoreFoundation                  0x0000000183e505b8 CFRunLoopRunSpecific + 572 (CFRunLoop.c:3414)
7   Foundation                      0x0000000182ae7000 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212 (NSRunLoop.m:373)
8   Foundation                      0x0000000182ae6e50 -[NSRunLoop(NSRunLoop) runUntilDate:] + 64 (NSRunLoop.m:420)
9   UIKitCore                       0x00000001869b9714 -[UIEventFetcher threadMain] + 420 (UIEventFetcher.m:1241)
10  Foundation                      0x0000000182af8158 __NSThread__start__ + 724 (NSThread.m:991)
11  libsystem_pthread.dylib         0x000000020b1c137c _pthread_start + 136 (pthread.c:931)
12  libsystem_pthread.dylib         0x000000020b1bc494 thread_start + 8 (:-1)

Thread 11:
0   libsystem_pthread.dylib         0x000000020b1bc480 start_wqthread + 0 (:-1)

Thread 12:
0   libsystem_pthread.dylib         0x000000020b1bc480 start_wqthread + 0 (:-1)

Thread 13:
0   libsystem_pthread.dylib         0x000000020b1bc480 start_wqthread + 0 (:-1)

Thread 14:
0   libsystem_pthread.dylib         0x000000020b1bc480 start_wqthread + 0 (:-1)


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0xffffffff9986e2bf   x5: 0x0000000000000018   x6: 0x000000016b782cd0   x7: 0x000000016b7823c0
    x8: 0x9b6eb48ba34b99ff   x9: 0x9b6eb48a447f237f  x10: 0x00000000000003ff  x11: 0x000000016b782430
   x12: 0x0000000000000000  x13: 0x0000000104ba1864  x14: 0x00000001a85a2228  x15: 0x00000001a85a2324
   x16: 0x0000000000000148  x17: 0x00000001e734ba80  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x0000000000000103  x21: 0x00000001e734bb60  x22: 0x0000000106961800  x23: 0x000000000106c000
   x24: 0x00000001a95f1000  x25: 0x0000000000000000  x26: 0x0000000000000000  x27: 0x0000000000000000
   x28: 0x0000000000000000   fp: 0x000000016b782ce0   lr: 0x000000020b1c2ef8
    sp: 0x000000016b782cc0   pc: 0x00000001d3c9f274 cpsr: 0x40000000
   esr: 0x56000080  Address size fault


Binary Images:
        0x10467c000 -         0x105023fff Vriendendienstje.Platform.App arm64  <993fe33464be30ef8a44af41237bf8cd> /private/var/containers/Bundle/Application/71C356AC-A2E3-46FE-B9EE-67BC1E5E9BD2/Vriendendienstje.Platform.App.app/Vriendendienstje.Platform.App
        0x105184000 -         0x10518bfff FirebaseCoreDiagnostics arm64  <9d982b363ab230ddb9e32a6004e26e9c> /private/var/containers/Bundle/Application/71C356AC-A2E3-46FE-B9EE-67BC1E5E9BD2/Vriendendienstje.Platform.App.app/Frameworks/FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics
        0x1051a0000 -         0x1051affff FirebaseCore arm64  <3f50ffa42e2c3f10bad34d29de3a608e> /private/var/containers/Bundle/Application/71C356AC-A2E3-46FE-B9EE-67BC1E5E9BD2/Vriendendienstje.Platform.App.app/Frameworks/FirebaseCore.framework/FirebaseCore
        0x1051d4000 -         0x1051dbfff nanopb arm64  <209b8d5a160e3d7395c9ec3eccbe1235> /private/var/containers/Bundle/Application/71C356AC-A2E3-46FE-B9EE-67BC1E5E9BD2/Vriendendienstje.Platform.App.app/Frameworks/nanopb.framework/nanopb
        0x1051f8000 -         0x10522bfff FirebaseMessaging arm64   /private/var/containers/Bundle/Application/71C356AC-A2E3-46FE-B9EE-67BC1E5E9BD2/Vriendendienstje.Platform.App.app/Frameworks/FirebaseMessaging.framework/FirebaseMessaging
        0x105284000 -         0x10528ffff GoogleToolboxForMac arm64  <9ebfff25122e37389e770c30e0c99b16> /private/var/containers/Bundle/Application/71C356AC-A2E3-46FE-B9EE-67BC1E5E9BD2/Vriendendienstje.Platform.App.app/Frameworks/GoogleToolboxForMac.framework/GoogleToolboxForMac
        0x1052b4000 -         0x1052c3fff FBLPromises arm64   /private/var/containers/Bundle/Application/71C356AC-A2E3-46FE-B9EE-67BC1E5E9BD2/Vriendendienstje.Platform.App.app/Frameworks/FBLPromises.framework/FBLPromises
        0x105300000 -         0x10532bfff GTMSessionFetcher arm64  <84d0325992313d748fa8fee8d60fb6fb> /private/var/containers/Bundle/Application/71C356AC-A2E3-46FE-B9EE-67BC1E5E9BD2/Vriendendienstje.Platform.App.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher
        0x105400000 -         0x10541ffff GoogleDataTransport arm64  <55d86e7837703932ac2cc9db93e53a7d> /private/var/containers/Bundle/Application/71C356AC-A2E3-46FE-B9EE-67BC1E5E9BD2/Vriendendienstje.Platform.App.app/Frameworks/GoogleDataTransport.framework/GoogleDataTransport
        0x105490000 -         0x10549bfff libobjc-trampolines.dylib arm64e   /private/preboot/Cryptexes/OS/usr/lib/libobjc-trampolines.dylib
        0x1054ac000 -         0x1054c7fff GoogleUtilities arm64   /private/var/containers/Bundle/Application/71C356AC-A2E3-46FE-B9EE-67BC1E5E9BD2/Vriendendienstje.Platform.App.app/Frameworks/GoogleUtilities.framework/GoogleUtilities
        0x105504000 -         0x105533fff GoogleAPIClientForREST arm64  <1f89d70b7f623350957ac8eeaa5e90ef> /private/var/containers/Bundle/Application/71C356AC-A2E3-46FE-B9EE-67BC1E5E9BD2/Vriendendienstje.Platform.App.app/Frameworks/GoogleAPIClientForREST.framework/GoogleAPIClientForREST
        0x105608000 -         0x10561ffff FirebaseInstallations arm64  <9243fd05262f37e1b589135955eb9569> /private/var/containers/Bundle/Application/71C356AC-A2E3-46FE-B9EE-67BC1E5E9BD2/Vriendendienstje.Platform.App.app/Frameworks/FirebaseInstallations.framework/FirebaseInstallations
        0x105698000 -         0x1056cbfff leveldb arm64  <705804dddf153aaf9342d696af03bf2f> /private/var/containers/Bundle/Application/71C356AC-A2E3-46FE-B9EE-67BC1E5E9BD2/Vriendendienstje.Platform.App.app/Frameworks/leveldb.framework/leveldb
        0x10581c000 -         0x105863fff Protobuf arm64  <9447cd88c361327788f90d8681b27997> /private/var/containers/Bundle/Application/71C356AC-A2E3-46FE-B9EE-67BC1E5E9BD2/Vriendendienstje.Platform.App.app/Frameworks/Protobuf.framework/Protobuf
        0x182a30000 -         0x18374efff Foundation arm64e  <6d058a2d05cf3a298bebb1030ae97282> /System/Library/Frameworks/Foundation.framework/Foundation
        0x183dfd000 -         0x184342fff CoreFoundation arm64e  <4250d45c51a93ac58c3d69de936fad46> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
        0x1865c8000 -         0x188488fff UIKitCore arm64e  <187c890e8e4c32f2a97efa905a55f094> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
        0x18bb3c000 -         0x18bbbbff3 libsystem_c.dylib arm64e  <1ad666a001a831c188b9808915fb97b4> /usr/lib/system/libsystem_c.dylib
        0x1a8570000 -         0x1a85cafff OSAnalytics arm64e  <1a4795fe0e1035afbe09e76496109422> /System/Library/PrivateFrameworks/OSAnalytics.framework/OSAnalytics
        0x1a95f1000 -         0x1a9674693 dyld arm64e  <5db839882ee63756bd07b8d67b1133a5> /usr/lib/dyld
        0x1d3c93000 -         0x1d3cccffb libsystem_kernel.dylib arm64e  <8d929b3bd4d639bfadbbbe59e928b332> /usr/lib/system/libsystem_kernel.dylib
        0x20b10c000 -         0x20b113fe3 libsystem_platform.dylib arm64e   /usr/lib/system/libsystem_platform.dylib
        0x20b1bb000 -         0x20b1c7ff3 libsystem_pthread.dylib arm64e   /usr/lib/system/libsystem_pthread.dylib

EOF

Device error logs:

Error   173 symptomsd(SymptomEvaluator) COSMCtrl _foregroundAppActivity incoming bundle vriendendienstje has nil supplied UUID, finds existing 993FE334-64BE-30EF-8A44-AF41237BF8CD
Error   33  runningboardd(RunningBoard) RBSStateCapture remove item called for untracked item 33-1413-21626 (target:[app:1413])
Error   33  runningboardd(RunningBoard) RBSStateCapture remove item called for untracked item 33-1413-21625 (target:[app:1413])
Error   33  runningboardd(RunningBoard) RBSStateCapture remove item called for untracked item 33-1413-21627 (target:[app:1413])
Error   34  SpringBoard(FrontBoard) [(FBSceneManager):sceneID:vriendendienstje-default] Update failed:  {
Error   34  SpringBoard(FrontBoard) [(FBSceneManager):sceneID:vriendendienstje-default] Update failed:  {
Error   34  SpringBoard(FrontBoard) [app:1413] Workspace assertion failed: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
Error   34  SpringBoard(FrontBoard) [(FBSceneManager):sceneID:vriendendienstje-default] Update failed:  {
Error   0   kernel(Sandbox) Sandbox: Vriendendienstje.Platform.App(1413) deny(2) file-test-existence /sbin/lldb
Error   0   kernel(Sandbox) Sandbox: Vriendendienstje.Platform.App(1413) deny(2) file-test-existence /bin/lldb
Error   0   kernel(Sandbox) Sandbox: Vriendendienstje.Platform.App(1413) deny(2) file-test-existence /usr/bin/lldb
Error   0   kernel(Sandbox) Sandbox: Vriendendienstje.Platform.App(1413) deny(2) file-test-existence /sbin/gdb
Error   0   kernel(Sandbox) Sandbox: Vriendendienstje.Platform.App(1413) deny(2) file-test-existence /bin/gdb
Error   0   kernel(Sandbox) Sandbox: Vriendendienstje.Platform.App(1413) deny(2) file-test-existence /usr/bin/gdb
Error   0   kernel(Sandbox) Sandbox: Vriendendienstje.Platform.App(1413) deny(2) file-test-existence /usr/bin/arm64e
Error   0   kernel(Sandbox) Sandbox: Vriendendienstje.Platform.App(1413) deny(2) file-test-existence /usr/bin/swift-backtrace

Hope someone can help my out because I'm at a dead end :(

Thanks for posting the crash report. Consider the backtrace of the crashing thread:

Thread 0 Crashed:
0 libsystem_kernel.dylib__pthread_kill + 8
1 libsystem_pthread.dylibpthread_kill + 268 (pthread.c:1721)
2 libsystem_c.dylibabort + 128 (abort.c:122)
3 Vriendendienstje.Platform.App0x10467c000 + 8880352
4 Vriendendienstje.Platform.App0x10467c000 + 8363776
5 libsystem_platform.dylib_sigtramp + 56 (sigtramp.c:116)
6 libsystem_pthread.dylibpthread_kill + 268 (pthread.c:1721)
7 libsystem_c.dylibabort + 128 (abort.c:122)
8 Vriendendienstje.Platform.App0x10467c000 + 5415188
9 Vriendendienstje.Platform.App0x10467c000 + 7536876
10 Vriendendienstje.Platform.App0x10467c000 + 8192116
11 Vriendendienstje.Platform.App0x10467c000 + 5491396
12 Vriendendienstje.Platform.App0x10467c000 + 8620160
13 dyldstart + 2724 (dyldMain.cpp:1334)

There’s a lot to unpack here. The immediate cause of the crash is that your code (frame 3) called abort. It’s hard to say why it did that because your code isn’t symbolicated. You’ll need to symbolicate this crash report in order to make progress. See Adding identifiable symbol names to a crash report.

However, frame 5 suggests that your code is running in a ****** handler. I usually see this when a developer has decided to use a third-party crash reporter. I strongly recommend against using third-party crash reports, for the reasons I outline in Implementing Your Own Crash Reporter.

This crash report indicates a clear bug in that crash reporter because the ****** handler is calling abort and that’s not an async ****** safe function.

Looking a level down, the ****** handler is running because of some other part of your code (frame 8) is calling abort (frame 7). That’s likely to be the real source of your crash.

So, to summarise:

  • Remove your third-party crash reporter. That’ll get you a trustworthy crash report.

  • Then symbolic the crash report to see uncover the identity of the failing code.


Oh, one more thing. I think this is unlikely to be related to TestFlight per se. It’s more likely that any release build of your app will crash this way. See Isolating Code Signing Problems from Build Problems for more on that.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

App unexpectedly crashes after installation from testflight
 
 
Q