iOS 16 beta 3 crash, random appearance in my app

which appears randomly after the app starts.

OS Version: iPhone OS 16.0 (20A5312j)

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Triggered by Thread:  0

Thread 0 name:   Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libobjc.A.dylib               	       0x1a4fdbdd8 objc_retain + 8
1   UIKitCore                     	       0x1ad18ac30 -[UIView __viewDelegate] + 32
2   UIAccessibility               	       0x1c244ff00 -[UIAccessibilityInformationLoader _loadAccessibilityInformationOnMainThread:] + 904
3   Foundation                    	       0x1a5f54af0 __NSFireTimer + 96
4   CoreFoundation                	       0x1a53e11ec __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32
5   CoreFoundation                	       0x1a5367300 __CFRunLoopDoTimer + 940
6   CoreFoundation                	       0x1a5361c7c __CFRunLoopDoTimers + 288
7   CoreFoundation                	       0x1a5340444 __CFRunLoopRun + 1896
8   CoreFoundation                	       0x1a5353bac CFRunLoopRunSpecific + 612
9   GraphicsServices              	       0x1c7c4f360 GSEventRunModal + 164
10  UIKitCore                     	       0x1ac59ba34 -[UIApplication _run] + 888
11  UIKitCore                     	       0x1ac3a1e04 UIApplicationMain + 340
12  MyApp                        	       0xXXXXXXx main.m + ***
13  dyld                          	       0x23881b8f8 start + 2296

Unable to provide a valid code, because it is unable to accurately locate what problem. I checked GCD dispatch_after scene, but it can't completely fix this problem.

dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
    view = [self myfunction];
});
  • Who can help me?

Add a Comment

Accepted Reply

Is there an apple Engineer?

Replies

Is there an apple Engineer?