MLeaksFinder
MLeaksFinder copied to clipboard
iOS13弹出UIAlertView时崩溃
*** Terminating app due to uncaught exception 'NSObjectNotAvailableException', reason: 'UIAlertView is deprecated and unavailable for UIScene based applications, please use UIAlertController!' *** First throw call stack: ( 0 CoreFoundation 0x000000010de66bde __exceptionPreprocess + 350 1 libobjc.A.dylib 0x000000010d684b20 objc_exception_throw + 48 2 CoreFoundation 0x000000010de66a1c +[NSException raise:format:] + 188 3 UIKitCore 0x00000001167cd463 -[UIAlertView initWithFrame:] + 417 4 UIKitCore 0x00000001167cdad0 -[UIAlertView initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitles:] + 218 5 朵朵一家 0x0000000109fe5cf0 +[MLeaksMessenger alertWithTitle:message:delegate:additionalButtonTitle:] + 304 6 朵朵一家 0x0000000109fe4ba9 +[MLeakedObjectProxy addLeakedObject:] + 857 7 朵朵一家 0x0000000109fe6152 -[NSObject(MemoryLeak) assertNotDealloc] + 146 8 朵朵一家 0x0000000109fe609e __35-[NSObject(MemoryLeak) willDealloc]_block_invoke + 46 9 libdispatch.dylib 0x000000010f393d64 _dispatch_client_callout + 8 10 libdispatch.dylib 0x000000010f3966d6 _dispatch_continuation_pop + 552 11 libdispatch.dylib 0x000000010f3a9a8f _dispatch_source_invoke + 2205 12 libdispatch.dylib 0x000000010f3a1c53 _dispatch_main_queue_callback_4CF + 1043 13 CoreFoundation 0x000000010ddc9699 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9 14 CoreFoundation 0x000000010ddc42f9 __CFRunLoopRun + 2329 15 CoreFoundation 0x000000010ddc36b6 CFRunLoopRunSpecific + 438 16 GraphicsServices 0x000000011064bbb0 GSEventRunModal + 65 17 UIKitCore 0x0000000117246a67 UIApplicationMain + 1621 18 朵朵一家 0x0000000109e7baad main + 125 19 libdyld.dylib 0x000000010f41bcf5 start + 1 20 ??? 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException
直接把他的alertView给注掉吧,要不就等作者更新SDK
直接把他的alertView给注掉吧,要不就等作者更新SDK
估计难,上次提交都是2017年了,提个MR试试
https://github.com/alreadyRight/MLeaksFinder临时写了下,看看能不能用