I had followed all the steps given in developers.google.com.
When I try to do
#import <GoogleSignIn/GoogleSignIn.h>
[GIDSignIn sharedInstance].clientID = kClientID;
Got clientID 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)
thanks in advance.
As per Google documents: https://developers.google.com/identity/sign-in/ios/sdk/, you should do the following:
Include SafariServices.framework and SystemConfiguration.framework to your Target -> Build Phases -> Link Binary with Libraries.
Add "-ObjC" (without quotes) to your Target -> Build Settings -> Other Linker Flags
I had above mentioned issue.
Just needs to add "SafariServices.framework" to your project which is available in iOS 9.
So far I tried I am unable to complete this with google sign in.
So I have used Google-Plus sign in mechanism to get the user details.
Please refer to this
https://developers.google.com/+/mobile/ios/getting-started
And also now I can share the content and people list/