I am trying to integrate Gmail for login .
I have followed every step of there documentation but getting the following linker errors.
Note:- I am using manual SDK rather than Cocoa Pods.
ld: warning: directory not found for option '-F/Users/harpreet/Documents/FacebookSDK'
Undefined symbols for architecture x86_64:
"_GSDK_NSClassFromString", referenced from:
l010 in GoogleSignIn(GIDSignIn.o)
l059 in GoogleSignIn(GIDSignIn.o)
"_OBJC_CLASS_$_GSDK_GTMOAuth2Authentication", referenced from:
objc-class-ref in GoogleSignIn(GIDSignIn.o)
objc-class-ref in GoogleSignIn(GIDAuthentication.o)
"_OBJC_CLASS_$_GSDK_GTMOAuth2Keychain", referenced from:
objc-class-ref in GoogleSignIn(GIDSignIn.o)
"_OBJC_CLASS_$_GSDK_GTMOAuth2SignIn", referenced from:
objc-class-ref in GoogleSignIn(GIDSignIn.o)
objc-class-ref in GoogleSignIn(GIDAuthentication.o)
"_OBJC_CLASS_$_GSDK_GTMOAuth2ViewControllerTouch", referenced from:
objc-class-ref in GoogleSignIn(GIDSignIn.o)
"_OBJC_CLASS_$_GSDK_GTMSessionFetcher", referenced from:
objc-class-ref in GoogleSignIn(GIDSignIn.o)
objc-class-ref in GoogleSignIn(GIDRuntimeConfigFetcher.o)
"_OBJC_CLASS_$_GSDK_GTMSessionFetcherService", referenced from:
objc-class-ref in GoogleSignIn(GIDSignIn.o)
"_OBJC_CLASS_$_GSDK_OpenInChromeController", 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)
add all this from sdk(google_signin_sdk_4_0_0) to your project
GoogleAppUtilities.framework
GoogleAuthUtilities.framework
GoogleNetworkingUtilities.framework
GoogleSymbolUtilities.framework
GoogleUtilities.framework
GoogleSignIn.framework
GoogleSignIn.bundle
Go to
build Phases -> link binary with Libraries
add this framework
SafariServices.framework
AddressBook.framework
SystemConfiguration.framework
also add this two files
libc++.tbd
libz.tbd
Make sure to also add:
GoogleUtilities.framework
GoogleSymbolUtilities.framework
GoogleAuthUtilities.framework
GoogleNetworkingUtilities.framework
GoogleAppUtilities.framework
And the ones listed in the official documentation:
AddressBook.framework
SafariServices.framework
SystemConfiguration.framework
If you use the Google icon, import:
GoogleSignIn.bundle
Find the official documentation here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With