Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to find "GoogleService-Info.plist" while trying to integrate Google Sign-in in my app

I have followed : Integrating Google Sign-In into your iOS app

However when I execute the app, it halts in the app delegate itself - even before I can see my first view controller.

The reason is because of these few lines of code I wrote in the "application didFinishLaunchingWithOptions withOptions", which are:

"NSError* configureError;
[[GGLContext sharedInstance] configureWithError: &configureError];
    NSAssert(!configureError, @"Error configuring Google services: %@", configureError);

 [GIDSignIn sharedInstance].delegate = self;"

In the debug, when it reaches this code, it says

"Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error configuring Google services: Error Domain=com.google.greenhouse Code=-200 "Unable to configure GGL." UserInfo=0x7ff9c2e1d000 {NSLocalizedRecoverySuggestion=Check formatting and location of GoogleService-Info.plist., NSLocalizedDescription=Unable to configure GGL., NSLocalizedFailureReason=Unable to parse supplied GoogleService-Info.plist. See log for details.}'".

I put the GoogleService-Info.plist in my directory, but it still isn't working.

like image 983
Karan. S Avatar asked Jul 08 '15 13:07

Karan. S


People also ask

Where do I put GoogleService-info plist in react native?

Setup GoogleService-Info. Once downloaded, place the file in the root of your iOS app at ios/[YOUR APP NAME]/GoogleService-Info. plist .

How do I sign into Google on iOS?

On your iPhone or iPad, open the Safari app. Go to www.google.com. Tap your profile image or Sign in. Follow the sign-in steps.


1 Answers

  1. You must drag and drop the GoogleService-Info.plist file into your project in a location such as Shared Resources. When you have successfully added the file, you should also make sure to include it in the project build:

Image showing the added resource

  1. Double-check that in the "Build Phases" section of your project that your project is including GoogleService-Info.plist. enter image description here

  2. Double check the file name. The file name must be exactly GoogleService-Info.plist common misspellings include GoogleServices-Info.plist and GoogleService-info.plist - case sensitive and exactly named only will work.

like image 188
class Avatar answered Sep 21 '22 07:09

class



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!