Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google SignIn CocoaPods deprecated

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

Using the deprecated pod is giving : Framework not found GoogleAppUtilities

like image 212
Abhigyan Singh Avatar asked Jun 06 '17 19:06

Abhigyan Singh


2 Answers

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.

like image 78
DionMes Avatar answered Oct 04 '22 02:10

DionMes


New pod location is:-

 pod 'GoogleSignIn'
like image 23
Chandan Avatar answered Oct 04 '22 02:10

Chandan