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

前端 未结 4 883
我寻月下人不归
我寻月下人不归 2020-12-16 15:19

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

相关标签:
4条回答
  • 2020-12-16 15:47

    This happens to me when I updated the google pods. They changed the way they configure URL schemes. The best way is to just reconfigure the google signin.

    0 讨论(0)
  • 2020-12-16 15:51

    If you wanna get only GCM_SENDER_ID, try this workaround:

    NSError* configureError;
    [[GGLContext sharedInstance] configureWithError:&configureError];
    NSString * gcmSenderID = [GGLContext sharedInstance].gcmSenderID;
    NSLog(@"%@", gcmSenderID);
    
    0 讨论(0)
  • 2020-12-16 15:52

    I faced the same problem. And, actually, I solved it when in cocoapods file I placed "pod 'Google/SignIn'" instead of "pod Google". Hope it could help you too.

    0 讨论(0)
  • 2020-12-16 15:57
    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.

    0 讨论(0)
提交回复
热议问题