Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting clang: error: linker command failed with exit code 1 (use -v to see invocation) while google signing

I'm getting this error while linking Google sign in without using cocoa pods. I have referred many solutions here but none of them solved my issue. please guide me through a proper solution.

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)
like image 329
Jan Avatar asked Feb 07 '23 19:02

Jan


1 Answers

GoogleAppUtilities.framework
GoogleAuthUtilities.framework
GoogleNetworkingUtilities.framework
GoogleSymbolUtilities.framework
GoogleUtilities.framework
GoogleSignIn.framework
SystemConfiguration.framework
SafariServices.framework
AddressBook.framework
GoogleSignIn.bundle
libz.tbd


Add all framework in your project https://developers.google.com/identity/sign-in/ios/sdk/ download Google Sign-In SDK 4.0.0

like image 186
Jayesh Miruliya Avatar answered Feb 10 '23 13:02

Jayesh Miruliya