Xcode Archived App Crashes On TestFlight

My app was archived and distributed to App Center, It works fine. Once my app's archived and distributed to TestFlight, I install my app then I get crashes. However, my app runs successfully in the simulator.

Here's my log file

Incident Identifier: 6B89B1EC-E8F3-48EE-8981-742B7D879C73
Hardware Model:      iPhone12,1
Process:             Kubota MMS [2470]
Path:                /private/var/containers/Bundle/Application/70BAE675-9EA3-4793-99DF-E761A5E3B60F/Kubota MMS.app/Kubota MMS
Identifier:          com.kubota.KRDAMachineryManagement
Version:             1.2 (72)
AppStoreTools:       13F100
AppVariant:          1:iPhone12,1:15
Beta:                YES
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           com.kubota.KRDAMachineryManagement [1028]

Date/Time:           2022-06-17 13:28:24.9662 +0700
Launch Time:         2022-06-17 13:28:24.4966 +0700
OS Version:          iPhone OS 16.0 (20A5283p)
Release Type:        Beta
Baseband Version:    3.50.03
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0010000100354f60 -> 0x0000000100354f60 (possible pointer authentication failure)
Exception Codes: 0x0000000000000001, 0x0010000100354f60
VM Region Info: 0x100354f60 is not in any region.  Bytes before following region: 43561120
      REGION TYPE                 START - END      [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                   102ce0000-102cfc000 [  112K] r-x/r-x SM=COW  ...pp/Kubota MMS
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [2470]

Triggered by Thread:  0


Kernel Triage:
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage


Thread 0 name:
Thread 0 Crashed:
0   ???                           	0x0000000100354f60 0x0 + 4298461024
1   libobjc.A.dylib               	0x0000000193dc418c load_images + 824 (objc-loadmethod.mm:204)
2   dyld                          	0x00000002250943fc dyld4::RuntimeState::notifyObjCInit(dyld4::Loader const*) + 164 (DyldRuntimeState.cpp:1688)
3   dyld                          	0x0000000225097d00 dyld4::Loader::runInitializersBottomUp(dyld4::RuntimeState&, dyld3::Array&) const + 204 (Loader.cpp:1898)
4   dyld                          	0x000000022509d37c dyld4::Loader::runInitializersBottomUpPlusUpwardLinks(dyld4::RuntimeState&) const + 328 (Loader.cpp:1911)
5   dyld                          	0x00000002250d0d20 dyld4::APIs::runAllInitializersForMain() + 360 (DyldAPIs.cpp:3617)
6   dyld                          	0x00000002250a66d8 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3384 (dyldMain.cpp:815)
7   dyld                          	0x00000002250a48f4 start + 2228 (dyldMain.cpp:1131)

Thread 1:
0   libsystem_pthread.dylib       	0x000000020afe8e40 start_wqthread + 0

Thread 2:
0   libsystem_pthread.dylib       	0x000000020afe8e40 start_wqthread + 0


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000281258030   x1: 0x0000000000000000   x2: 0x0000000194d93150   x3: 0x0000000fffffc088
    x4: 0x00000001058f4600   x5: 0x0000000000000000   x6: 0x0000000000002000   x7: 0x0000000000000000
    x8: 0x00000001038dc000   x9: 0x0100000000000000  x10: 0x01000001f4292229  x11: 0x02000001f4292229
   x12: 0x0000000000000000  x13: 0x00000002810555f0  x14: 0x00000001f42921d8  x15: 0x00000001f42921d8
   x16: 0x0010000100354f60  x17: 0x0000000194d93150  x18: 0x0000000000000000  x19: 0x00000001038fe188
   x20: 0x0000000281258030  x21: 0x000000010365b6b8  x22: 0x00000001030182b8  x23: 0x00000001f4278000
   x24: 0x0000000282c54300  x25: 0x00000001962ec648  x26: 0x00000001038fe188  x27: 0x00000001f4278000
   x28: 0x00000001efe9e000   fp: 0x000000016d117f80   lr: 0x00000001030245c0
    sp: 0x000000016d117f60   pc: 0x0010000100354f60 cpsr: 0x60000000
   esr: 0x82000004 (Instruction Abort) Translation fault


Binary Images:
0x193db4000 - 0x193df6ddf libobjc.A.dylib arm64e   /usr/lib/libobjc.A.dylib
0x20afe8000 - 0x20aff3fff libsystem_pthread.dylib arm64e  <0ec7fdb169693ff6a4d6b15e2ce9155c> /usr/lib/system/libsystem_pthread.dylib
0x22508f000 - 0x225110627 dyld arm64e   /usr/lib/dyld

EOF

I tried to turn off the optimiser but it's not working. (change the optimization level to "-Onone" in "Swift Compiler)

Additional information

  • I use Xcode 13.4.1
  • I use MacOS Monterey 12.0.1
  • My app require ios 14 or later

Same!!!

... Same!!!!!!!

Xcode Archived App Crashes On TestFlight
 
 
Q