替换系统objectAtIndex和objectAtIndexedSubscript方法后造成的各种崩溃

1.iOS8系统

Date/Time:           2019-03-16 00:19:52.790 +0800
Launch Time:         2019-03-16 00:17:33.364 +0800
OS Version:          iOS 8.4.1 (12H321)
Report Version:      105

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000020
Triggered by Thread:  0

Thread 0 name:
Thread 0 Crashed:
0   libobjc.A.dylib               	0x0000000196640174 objc_release + 20 (objc-object.h:419)
1   libsystem_blocks.dylib        	0x0000000196cfd90c _Block_release + 252 (runtime.c:318)
2   libobjc.A.dylib               	0x0000000196641720 (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 560 (NSObject.mm:649)
3   CoreFoundation                	0x000000018483cd10 _CFAutoreleasePoolPop + 24 (NSObject.m:1391)
4   UIKit                         	0x00000001893cc580 _wrapRunLoopWithAutoreleasePoolHandler + 72 (UIApplication.m:1796)
5   CoreFoundation                	0x0000000184913fec __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 28 (CFRunLoop.c:1622)
6   CoreFoundation                	0x0000000184910f78 __CFRunLoopDoObservers + 356 (CFRunLoop.c:1718)
7   CoreFoundation                	0x0000000184911358 __CFRunLoopRun + 832 (CFRunLoop.c:2548)
8   CoreFoundation                	0x000000018483cf70 CFRunLoopRunSpecific + 392 (CFRunLoop.c:2795)
9   GraphicsServices              	0x000000018e2976f8 GSEventRunModal + 164 (GSEvent.c:2245)
10  UIKit                         	0x000000018943ed90 UIApplicationMain + 1484 (UIApplication.m:3039)
11  xxx                 	0x00000001002a3ed8 0x10002c000 + 2588376
12  libdyld.dylib                 	0x0000000196cd2a04 tlv_get_addr + 176 (threadLocalHelpers.s:279)

2.iOS10系统

Date/Time:           2019-03-15 19:14:54.7906 +0800
Launch Time:         2019-03-15 19:14:03.5723 +0800
OS Version:          iPhone OS 10.3.3 (14G60)
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000020
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]
Triggered by Thread:  0

Thread 0 name:
Thread 0 Crashed:
0   libobjc.A.dylib               	0x00000001812c97f4 objc_object::release() + 8 (objc-object.h:531)
1   libsystem_blocks.dylib        	0x0000000181757a68 _Block_release + 160 (runtime.c:175)
2   UIKit                         	0x00000001894099f4 -[UIKeyboardTaskEntry dealloc] + 68 (UIKeyboardTaskQueue.m:691)
3   libobjc.A.dylib               	0x00000001812ca134 (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 836 (NSObject.mm:1640)
4   CoreFoundation                	0x0000000182726b28 _CFAutoreleasePoolPop + 28 (NSObject.m:1358)
5   UIKit                         	0x0000000188bfb3e8 _prepareForCAFlush + 596 (UIApplication.m:2404)
6   UIKit                         	0x000000018896f2f4 _afterCACommitHandler + 236 (UIApplication.m:2505)
7   CoreFoundation                	0x00000001827f89a8 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32 (CFRunLoop.c:1802)
8   CoreFoundation                	0x00000001827f6630 __CFRunLoopDoObservers + 372 (CFRunLoop.c:1898)
9   CoreFoundation                	0x00000001827f6a7c __CFRunLoopRun + 956 (CFRunLoop.c:2849)
10  CoreFoundation                	0x0000000182726da4 CFRunLoopRunSpecific + 424 (CFRunLoop.c:3113)
11  GraphicsServices              	0x0000000184191074 GSEventRunModal + 100 (GSEvent.c:2245)
12  UIKit                         	0x00000001889e1c9c UIApplicationMain + 208 (UIApplication.m:4089)
13  xxx                 	0x000000010032bedc 0x1000b4000 + 2588380
14  libdyld.dylib                 	0x000000018173559c start + 4

 

3.iOS9系统

Thread 0 name:
Thread 0 Crashed:
0   libdispatch.dylib             	0x000000018259a58c _os_object_release + 84 (object.c:84)
1   libsystem_blocks.dylib        	0x00000001825f58e8 _Block_release + 156 (runtime.c:312)
2   UIKit                         	0x000000018863d6b0 -[UIKeyboardTaskEntry dealloc] + 44 (UIKeyboardTaskQueue.m:612)
3   libobjc.A.dylib               	0x00000001821cdae8 (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 508 (NSObject.mm:741)
4   CoreFoundation                	0x0000000182a2c9fc _CFAutoreleasePoolPop + 28 (NSObject.m:1401)
5   UIKit                         	0x0000000187f6c9e4 _prepareForCAFlush + 352 (UIApplication.m:2345)
6   UIKit                         	0x0000000187c9e5e4 _afterCACommitHandler + 160 (UIApplication.m:2423)
7   CoreFoundation                	0x0000000182b04728 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32 (CFRunLoop.c:1620)
8   CoreFoundation                	0x0000000182b024cc __CFRunLoopDoObservers + 372 (CFRunLoop.c:1716)
9   CoreFoundation                	0x0000000182b028fc __CFRunLoopRun + 928 (CFRunLoop.c:2558)
10  CoreFoundation                	0x0000000182a2cc50 CFRunLoopRunSpecific + 384 (CFRunLoop.c:2814)
11  GraphicsServices              	0x0000000184314088 GSEventRunModal + 180 (GSEvent.c:2245)
12  UIKit                         	0x0000000187d16088 UIApplicationMain + 204 (UIApplication.m:3772)

4.iOS9 

Thread 0 name:
Thread 0 Crashed:
0   libobjc.A.dylib               	0x0000000183900160 objc_release + 16 (objc-object.h:432)
1   libsystem_blocks.dylib        	0x0000000183d298e8 _Block_release + 156 (runtime.c:312)
2   libobjc.A.dylib               	0x0000000183901ae8 (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 508 (NSObject.mm:741)
3   CoreFoundation                	0x000000018415d42c _CFAutoreleasePoolPop + 28 (NSObject.m:1401)
4   UIKit                         	0x0000000189229f94 _prepareForCAFlush + 352 (UIApplication.m:2270)
5   UIKit                         	0x0000000188f5dc64 _afterCACommitHandler + 160 (UIApplication.m:2348)
6   CoreFoundation                	0x0000000184230588 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32 (CFRunLoop.c:1620)
7   CoreFoundation                	0x000000018422e32c __CFRunLoopDoObservers + 372 (CFRunLoop.c:1716)
8   CoreFoundation                	0x000000018422e75c __CFRunLoopRun + 928 (CFRunLoop.c:2558)
9   CoreFoundation                	0x000000018415d680 CFRunLoopRunSpecific + 384 (CFRunLoop.c:2814)
10  GraphicsServices              	0x000000018566c088 GSEventRunModal + 180 (GSEvent.c:2245)
11  UIKit                         	0x0000000188fd4d90 UIApplicationMain + 204 (UIApplication.m:3681)

 

 

 

 

 

 

 

 

 

 

 

你可能感兴趣的:(ios)