Firebase_cpp_sdk cocos2dx C++ Undefined symbols errors

I integrated firebase into my old project with firebase_cpp_sdk following the firebase docs guidelines. I installed the firebase through cocoapods, but while building for iOS device(ipad4) I’m getting these errors, please see the attached screenshot.

I’m using these firebase products:
‘Firebase/Auth’
‘Firebase/Database’
‘Firebase/RemoteConfig’
Cocos2dx 3.16.1 C++, Xcode 12.4

How do I solve this? Plz help. :worried:

I’d suggest asking Firebase.

Did you change your include paths, library paths, etc in build settings?

I tried changing settings and building lot of times… above error is gone but now I’m getting this error:

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_GKLocalPlayer", referenced from:
      objc-class-ref in firebase_auth(credential_ios.mm.o)
ld: symbol(s) not found for architecture armv7

Can you help?

what architectures are you building for?

building for architecture armv7 now as I’m testing in my ipad4 but I have set ‘arm64 armv7’ in VALID_ARCHS

The errors seems to indicate that you are building for armv7 and you either haven’t specified it or you are using libraries that aren’t built for it.