CapacitorGoogleAuth icon indicating copy to clipboard operation
CapacitorGoogleAuth copied to clipboard

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'presentingViewController must be set.

Open iamanandacharya opened this issue 4 years ago • 0 comments

I got this error when I google-sign in to IOS

App Delegate.swift:

class AppDelegate: UIResponder, UIApplicationDelegate { Thread 1: "presentingViewController must be set."

First throw call stack: ( 0 CoreFoundation 0x00007fff20421af6 _exceptionPreprocess + 242 1 libobjc.A.dylib 0x00007fff20177e78 objc_exception_throw + 48 2 CoreFoundation 0x00007fff204219d4 -[NSException initWithCoder:] + 0 3 App 0x000000010cfbd489 -[GIDSignIn signInWithOptions:] + 123 4 App 0x000000010cfbce57 -[GIDSignIn signIn] + 64 5 App 0x000000010cfa68f3 $s33CodetrixStudioCapacitorGoogleAuth0dE0C6signInyySo13CAPPluginCallCFyycfU + 323 6 App 0x000000010cfa6990 $sIeg_IeyB_TR + 48 7 libdispatch.dylib 0x000000010e8817ec _dispatch_call_block_and_release + 12 8 libdispatch.dylib 0x000000010e8829c8 _dispatch_client_callout + 8 9 libdispatch.dylib 0x000000010e890e75 _dispatch_main_queue_callback_4CF + 1152 10 CoreFoundation 0x00007fff2038fdbb CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9 11 CoreFoundation 0x00007fff2038a63e __CFRunLoopRun + 2685 12 CoreFoundation 0x00007fff203896d6 CFRunLoopRunSpecific + 567 13 GraphicsServices 0x00007fff2c257db3 GSEventRunModal + 139 14 UIKitCore 0x00007fff24696cf7 -[UIApplication _run] + 912 15 UIKitCore 0x00007fff2469bba8 UIApplicationMain + 101 16 App 0x000000010cfa36bb main + 75 17 libdyld.dylib 0x00007fff2025a3e9 start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'presentingViewController must be set.' terminating with uncaught exception of type NSException CoreSimulator 732.18.6 - Device: iPhone SE (2nd generation) (C531465B-B4F5-466E-AAA0-2810E760F998) - Runtime: iOS 14.4 (18D46) - DeviceType: iPhone SE (2nd generation) (lldb)

iamanandacharya avatar May 05 '21 07:05 iamanandacharya