Google SignIn CocoaPods deprecated

后端 未结 2 1488
面向向阳花
面向向阳花 2021-01-11 11:06

How to implement Google SignIn in iOS app as now Google pod is deprecated?

Using the deprecated pod is giving : Framework not found GoogleAppUtilities

相关标签:
2条回答
  • 2021-01-11 11:31

    The pod install is indeed 'GoogleSignIn' . However this also means adjusting the bridging header to

    #import <GoogleSignin/GoogleSignIn.h>
    

    And instead of using :

    GGLContext.sharedInstance().configureWithError(&configureError)
    

    You need to use :

    GIDSignIn.sharedInstance().clientID = kClientID
    

    And replace kClientID with your client id (You can/need to remove some other lines also regarding the &configureError).

    You can find the info here : Google Sign-In

    The Pod install now follows the manually install method mentioned in the blue notes.

    0 讨论(0)
  • 2021-01-11 11:39

    New pod location is:-

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