iOS build linking errors

I’m trying to build my project for iOS but I’m getting following errors:

"_OBJC_CLASS_$_GSDK_GTMSessionFetcher", referenced from:
      objc-class-ref in GoogleSignIn(GIDSignIn.o)
      objc-class-ref in GoogleSignIn(GIDRuntimeConfigFetcher.o)
      objc-class-ref in gpg(GPGClearcutLogger.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(GIDAuthentication.o)
      objc-class-ref in GoogleSignIn(GIDSignIn.o)
  "_OBJC_CLASS_$_GSDK_OpenInChromeController", referenced from:
      objc-class-ref in GoogleSignIn(GIDSignIn.o)
  "_OBJC_CLASS_$_GSDK_GTMOAuth2ViewControllerTouch", referenced from:
      objc-class-ref in GoogleSignIn(GIDSignIn.o)
  "_OBJC_CLASS_$_GSDK_GTMSessionFetcherService", referenced from:
      objc-class-ref in GoogleSignIn(GIDSignIn.o)
      objc-class-ref in gpg(GIPNetworkImage.o)
  "_GSDK_NSClassFromString", referenced from:
      l011 in GoogleSignIn(GIDSignIn.o)
      l059 in GoogleSignIn(GIDSignIn.o)
  "_OBJC_CLASS_$_GSDK_GTMOAuth2Authentication", referenced from:
      objc-class-ref in GoogleSignIn(GIDAuthentication.o)
      objc-class-ref in GoogleSignIn(GIDSignIn.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have tried following things :

  1. Added googleSingin frame work and google open source framework.
  2. made sure all bundles are added in Copy bundle resources
  3. $(inherited) is present in header search paths , framework search paths and library search paths
  4. Enable Bit code is set to “No”
  5. In other linker flags I added flag -ObjC

I’m not able to figure what is it that I’m missing out. Any help regarding this is appreciated.

Thank you.

I finally figured it out. I have Gooogle mobile ads plugin and google play game plugins both. I didn’t installed cocoa pods and I was adding all frameworks in Xcode. installing cocoa pods did the job :slight_smile: