payu-intrepos / PayUMoney-IOS-SDK

Easy to integrate SDK for iOS to facilitate fast mobile checkout
https://www.payumoney.com/
MIT License
11 stars 21 forks source link

** Terminating app due to uncaught exception 'NSObjectNotAvailableException', reason: 'UIAlertView is deprecated and unavailable for UIScene based applications, please use UIAlertController!' #54

Closed selva-ios closed 4 years ago

selva-ios commented 4 years ago

When i click paynow button before payment method load. Xcode : Version 11.3.1 (11C504) iOS : 13 Swift 5.0

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

RajvinderPayU commented 4 years ago

Hi @SelvaMacApp,

Please use the latest SDK from here, this issue is fixed now.

selva-ios commented 4 years ago

Thanks, Now the issue was fixed.

Hi @SelvaMacApp,

Please use the latest SDK from here, this issue is fixed now.