XCode 13.3.1, iOS 15.4.1, Simulator works, but IPA crashes

Running on the simulator & iPhone through XCode works, but when I create an IPA it crashes on start with this error:


Incident Identifier: 6BAB10BB-6228-41CF-A456-C9CD42C8F649
CrashReporter Key:   192b0ab51f833d16a3665fc620b94abab20ee8d5
Hardware Model:      iPhone13,3
Process:             xyz [917]
Path:                /private/var/containers/Bundle/Application/7E1838A7-DB85-4D54-90A4-79BC75B3A9F8/xyz.app/xyz
Identifier:          com.xyz.xyz.build
Version:             1.3.0 (202)
AppStoreTools:       13E500a
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           com.xyz.xyz.build [527]

Date/Time:           2022-06-14 13:27:22.0134 +0200
Launch Time:         2022-06-14 13:27:21.7531 +0200
OS Version:          iPhone OS 15.4.1 (19E258)
Release Type:        User
Baseband Version:    2.53.01
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


Thread 0 name:   Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib        	       0x1b923db78 __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x1f2eac3bc pthread_kill + 268
2   libsystem_c.dylib             	       0x18c85851c abort + 168
3   libswiftCore.dylib            	       0x1054b8b30 _hidden#25421_ + 0
4   libswiftCore.dylib            	       0x1054b0dc8 _hidden#24807_ + 0
5   dyld                          	       0x104d98910 invocation function for block in dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const + 164
6   dyld                          	       0x104dcc780 invocation function for block in dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const + 168
7   dyld                          	       0x104d964d8 invocation function for block in dyld3::MachOFile::forEachSection(void (dyld3::MachOFile::SectionInfo const&, bool, bool&) block_pointer) const + 528
8   dyld                          	       0x104d956b8 dyld3::MachOFile::forEachLoadCommand(Diagnostics&, void (load_command const*, bool&) block_pointer) const + 168
9   dyld                          	       0x104d94a04 dyld3::MachOFile::forEachSection(void (dyld3::MachOFile::SectionInfo const&, bool, bool&) block_pointer) const + 192
10  dyld                          	       0x104dcc310 dyld3::MachOAnalyzer::forEachInitializerPointerSection(Diagnostics&, void (unsigned int, unsigned int, unsigned char const*, bool&) block_pointer) const + 148
11  dyld                          	       0x104da20b4 dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const + 432
12  dyld                          	       0x104d9ec28 dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const + 172
13  dyld                          	       0x104d9a584 dyld4::Loader::runInitializersBottomUp(dyld4::RuntimeState&, dyld3::Array<dyld4::Loader const*>&) const + 216
14  dyld                          	       0x104d9a560 dyld4::Loader::runInitializersBottomUp(dyld4::RuntimeState&, dyld3::Array<dyld4::Loader const*>&) const + 180
15  dyld                          	       0x104da07ac dyld4::Loader::runInitializersBottomUpPlusUpwardLinks(dyld4::RuntimeState&) const + 124
16  dyld                          	       0x104dc04a0 dyld4::APIs::runAllInitializersForMain() + 312
17  dyld                          	       0x104dab76c dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3060
18  dyld                          	       0x104da9cc4 start + 488


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x0000000000300500   x5: 0x0000000000000020   x6: 0x0049000004210143   x7: 0x0000000000000001
    x8: 0xb12da82a6bd6f68b   x9: 0xb12da82b6f09330b  x10: 0x0000000000000000  x11: 0x0000000000000002
   x12: 0x00000000866657fb  x13: 0x0000000006665000  x14: 0x0000000006600000  x15: 0x00000000000000ff
   x16: 0x0000000000000148  x17: 0x0000000104dfc580  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x0000000000000103  x21: 0x0000000104dfc660  x22: 0x00000001055546e8  x23: 0x0000000105218dd0
   x24: 0x0000000105218830  x25: 0x000000016b6beae0  x26: 0x0000000105218dd0  x27: 0x0000000000001178
   x28: 0x0000000104b717b0   fp: 0x000000016b6be7f0   lr: 0x00000001f2eac3bc
    sp: 0x000000016b6be7d0   pc: 0x00000001b923db78 cpsr: 0x40001000
   far: 0x00000001d852db08  esr: 0x56000080  Address size fault

Binary Images:
       0x1b9236000 -        0x1b926bfff libsystem_kernel.dylib arm64e  <c2fcc05874803c14b4790064a3f843e3> /usr/lib/system/libsystem_kernel.dylib
       0x1f2ea5000 -        0x1f2eb0fff libsystem_pthread.dylib arm64e  <b48efcbed4f7308ba3fa172e0ea78e33> /usr/lib/system/libsystem_pthread.dylib
       0x18c838000 -        0x18c8b7fff libsystem_c.dylib arm64e  <b0793d31ed1b3549b86192a10841bf68> /usr/lib/system/libsystem_c.dylib
       0x105218000 -        0x105553fff libswiftCore.dylib arm64  <1c83ba26059037aab867d3be1df9299d> /private/var/containers/Bundle/Application/7E1838A7-DB85-4D54-90A4-79BC75B3A9F8/xyz.app/Frameworks/libswiftCore.dylib
       0x104d90000 -        0x104de7fff dyld arm64e  <d16b72c0d6193e4892622c10a1d3066f> /usr/lib/dyld

EOF

Can anybody point me to the right direction on how to fix this?

XCode 13.3.1, iOS 15.4.1, Simulator works, but IPA crashes
 
 
Q