Failed to add google login in ios 9.0

I followed all the steps listed on developers.google.com.

When i try to do

#import <GoogleSignIn/GoogleSignIn.h> [GIDSignIn sharedInstance].clientID = kClientID; 

Got the client id from my plist file.

But it shows linker errors like

 Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_SFSafariViewController", referenced from: objc-class-ref in GoogleSignIn(GIDSignIn.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) 

early.

+2
source share
3 answers

I had the above problem.

You just need to add " SafariServices.framework " to your project, which is available in iOS 9.

enter image description here

+3
source

According to Google docs: https://developers.google.com/identity/sign-in/ios/sdk/ , you should do the following:

  • Include SafariServices.framework and SystemConfiguration.framework in your target audience -> Build phases -> Link binaries to libraries.

  • Add "-ObjC" (without quotes) to your target -> Build Settings -> Other linker flags

+1
source

While I tried, I cannot complete this using google login.

So, I used the Google-Plus login mechanism to get user details.

Please refer to this

https://developers.google.com/+/mobile/ios/getting-started

And now I can share the content and the list of people /

0
source

All Articles