Show linker error while integration of gmail in my app using swift [closed]
Asked Answered
S

0

6

I had followed this link to integrate gmail sign in in my project

https://developers.google.com/identity/sign-in/ios/sign-in?ver=swift#enable_sign-in

But it shows below linker error

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)

thanks in advance

Shiftless answered 31/5, 2016 at 5:40 Comment(6)
Try Clean. Let the indexing happen and then build the project. See if this works.Aw
i already tried this but not works @TheRohanSanapShiftless
@AmitKaushal Hi... Have you found any solution of this? Please guide me if you were successful in addressing this issue.Crossbar
yes,I have solved issue by installing CocoaPods before that i used their SDK which gave above error .@Goti Follow this developers.google.com/identity/sign-in/ios/start-integratingShiftless
@AmitKaushal Can you please join me in chat? I really want to solve this. Have been trying since 2 days.Crossbar
#37766679Tivoli

© 2022 - 2024 — McMap. All rights reserved.