App is crashing while using Google Sign in for iOS with AssertionFailure

1.3k Views Asked by At

I tried to implement Google Sign in for iOS according to the docs - iOS implentation. But the app is crashing with an error while calling

[[GGLContext sharedInstance] configureWithError: &configureError];

in my App Delegate's application:didFinishLaunchingWithOptions method.

Error :-

Assertion failure in void validateGoogleSignInWithURLSchemes(NSArray *__strong)(), googlemac/iPhone/Greenhouse/Source/GGLURLSchemeUtil.m:39

I have added GoogleService-Info.plist to the target resources and also added URL Types for REVERSED_CLIENT_ID and Bundle Identifier as explained in the docs and also referenced here.

Is there something I am missing or what should I do to fix the same?

1

There are 1 best solutions below

2
On

It was due to a simple spelling mistake. I had my Bundle Identifier wrong in the URL scheme while adding URL Types.

Please suggest if it's better to delete this question. I will delete the same.