Getting clang: error: linker command failed with exit code 1 (use -v to call the call) and google signing

I get this error when connecting google login without using cocoa pods. I mentioned a lot of solutions here, but none of them solved my problem. please guide me through the right decision.

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) 
+4
swift google-signin
source share
4 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 the framework to your project https://developers.google.com/identity/sign-in/ios/sdk/ upload the SDK 4.0.0 to Google.

+6
source share

Having the same error when integrating GIDSignin in my application, but resolved the error after installing it through cocoa pods.Try to install it through containers.

+1
source share

Did you make a cocoa pod using the Google pod? if so, do it using "Google / SignIn". You may not have made the appropriate import.

0
source share

add all this from sdk (google_signin_sdk_4_0_0) to the project:

 GoogleAppUtilities.framework GoogleAuthUtilities.framework GoogleNetworkingUtilities.framework GoogleSymbolUtilities.framework GoogleUtilities.framework GoogleSignIn.framework GoogleSignIn.bundle 

Switch to

 build Phases -> link binary with Libraries 

and add this framework:

 SafariServices.framework AddressBook.framework SystemConfiguration.framework 

Also add two files:

 libc++.tbd libz.tbd 
0
source share

All Articles