App Crashing on launch for iOS16 Beta 4 Public

Hello there,

Our App was working fine before launch of iOS 16 Beta 4 Public. We upgraded our device for the available iOS 16 Beta 4 and app crashes on launch. Below are the crash log which we are trying to understand. Kindly help for same.

Exception Type: EXC_GUARD (SIGKILL) Exception Subtype: GUARD_TYPE_MACH_PORT Exception Message: mach_msg_trap() called with msgh_id 4806. The trap is not allowed on this platform. Exception Codes: 0x00000000000012c6, 0x0000000000000000 Termination Reason: GUARD 0x20000003000012c6

Triggered by Thread: 0

Exception Subtype: GUARD_TYPE_MACH_PORT
Exception Message: mach_msg_trap() called with msgh_id 4806. The trap is not allowed on this platform.
Exception Codes: 0x00000000000012c6, 0x0000000000000000
Termination Reason: GUARD 0x20000003000012c6 

Triggered by Thread:  0


Thread 0 name:
Thread 0 Crashed:
0   preprodx                      	0x000000010171dec4 0x10104c000 + 7151300
1   preprodx                      	0x000000010159c2c4 0x10104c000 + 5571268
2   preprodx                      	0x000000010159c35c 0x10104c000 + 5571420
3   preprodx                      	0x00000001010c4ac4 0x10104c000 + 494276
4   preprodx                      	0x00000001010cbc74 0x10104c000 + 523380
5   preprodx                      	0x000000010119eb24 0x10104c000 + 1387300
6   preprodx                      	0x00000001011a6a64 0x10104c000 + 1419876
7   libobjc.A.dylib               	0x00000001aed5cadc load_images + 824 (objc-loadmethod.mm:204)
8   dyld                          	0x00000001d3bf13fc dyld4::RuntimeState::notifyObjCInit(dyld4::Loader const*) + 164 (DyldRuntimeState.cpp:1687)
9   dyld                          	0x00000001d3bf4cc0 dyld4::Loader::runInitializersBottomUp(dyld4::RuntimeState&, dyld3::Array<dyld4::Loader const*>&) const + 204 (Loader.cpp:1929)
10  dyld                          	0x00000001d3bf4ca8 dyld4::Loader::runInitializersBottomUp(dyld4::RuntimeState&, dyld3::Array<dyld4::Loader const*>&) const + 180 (Loader.cpp:1923)
11  dyld                          	0x00000001d3bfa33c dyld4::Loader::runInitializersBottomUpPlusUpwardLinks(dyld4::RuntimeState&) const + 328 (Loader.cpp:1942)
12  dyld                          	0x00000001d3c2e244 dyld4::APIs::runAllInitializersForMain() + 360 (DyldAPIs.cpp:3619)
13  dyld                          	0x00000001d3c0366c dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3388 (dyldMain.cpp:818)
14  dyld                          	0x00000001d3c018bc start + 2364 (dyldMain.cpp:1152)


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x000000000000002e   x1: 0x0000000000000003   x2: 0x0000000000000040   x3: 0x000000000000002c
    x4: 0x0000000000000707   x5: 0x0000000000000000   x6: 0x0000000000000000   x7: 0x0000000000000000
    x8: 0x0000000000000707   x9: 0x0000000000000000  x10: 0x0000000100481328  x11: 0x000000016fa718c4
   x12: 0x0000000000000007  x13: 0x0000000000000001  x14: 0x000000000000009f  x15: 0x00000000ffffffd0
   x16: 0xffffffffffffffe1  x17: 0x000000010171dec0  x18: 0x0000000000000000  x19: 0x0000000000018000
   x20: 0x0000000100481328  x21: 0x0000000100498000  x22: 0x0000000100480000  x23: 0x0000000100481330
   x24: 0x000000006f5f0660  x25: 0x000000020be06af0  x26: 0x0000000000000003  x27: 0x0000000000000003
   x28: 0x0000000101768090   fp: 0x000000016fa718f0   lr: 0x000000010158121c
    sp: 0x000000016fa71860   pc: 0x000000010171dec4 cpsr: 0x20000000
   esr: 0x56000080  Address size fault


Binary Images:
0x10104c000 - 0x101747fff preprodx arm64  <4be32f2c400b3bdfb44411eb361bc865> /private/var/containers/Bundle/Application/75A7DECF-03CE-484D-B733-3D1A1C8E4288/Preprod OTP.app/Frameworks/preprodx.framework/preprodx
0x1aed4c000 - 0x1aed8fc3f libobjc.A.dylib arm64e  <c95bf8ece95f37178e3d652d73338022> /usr/lib/libobjc.A.dylib
0x1d3bec000 - 0x1d3c6ee4f dyld arm64e  <7cbbce637e843442841333376195d597> /usr/lib/dyld

EOF

I have the same problem here. Have you solved it?

Due to one internal third party SDK which was non-supportive for iOS 16.

How did you find out which 3rd party SDK was having issues?

It can be used before iOS16, indicating that the iOS16 api is not used, why does it crash in iOS16

Due to mach_msg_trap method

App Crashing on launch for iOS16 Beta 4 Public
 
 
Q