Re: [Firebase] Firebase C++ with Cocos2d-x - Undefined symbols when using Universal Frameworks

159 views
Skip to first unread message

Stewart Miles

unread,
Apr 16, 2018, 12:04:37 PM4/16/18
to Firebase Google Group
You also need to add the Firebase iOS SDK.  See https://firebase.google.com/docs/cpp/setup#dependencies

On Wed, Apr 11, 2018 at 12:51 PM Power Droid <powerd...@gmail.com> wrote:

I have added the Universal Frameworks for Auth, Analytics, and Core to an existing Cocos2d-x project.  When I add the files FirebaseAuthScene, FirebaseCocos, and FirebaseScene from the cocos2dx-cpp-sample-master project on Github, I get the following errors.  I'm not understanding what is happening, as I have added the necessary Frameworks.  


Undefined symbols for architecture x86_64:

  "_OBJC_CLASS_$_FIRPhoneAuthCredential", referenced from:

      objc-class-ref in firebase_auth(user_ios_50aab9521b0618a15012927fd7f5f8f8.o)

  "_OBJC_CLASS_$_FIRGoogleAuthProvider", referenced from:

      objc-class-ref in firebase_auth(credential_ios_b6ca7470a6ed6b7578fa38adb90929b3.o)

  "_OBJC_CLASS_$_FIRGitHubAuthProvider", referenced from:

      objc-class-ref in firebase_auth(credential_ios_b6ca7470a6ed6b7578fa38adb90929b3.o)

  "_OBJC_CLASS_$_FIREmailAuthProvider", referenced from:

      objc-class-ref in firebase_auth(credential_ios_b6ca7470a6ed6b7578fa38adb90929b3.o)

  "_OBJC_CLASS_$_FIRFacebookAuthProvider", referenced from:

      objc-class-ref in firebase_auth(credential_ios_b6ca7470a6ed6b7578fa38adb90929b3.o)

  "_OBJC_CLASS_$_FIRPhoneAuthProvider", referenced from:

      objc-class-ref in firebase_auth(credential_ios_b6ca7470a6ed6b7578fa38adb90929b3.o)

  "_OBJC_CLASS_$_FIROAuthProvider", referenced from:

      objc-class-ref in firebase_auth(credential_ios_b6ca7470a6ed6b7578fa38adb90929b3.o)

  "_OBJC_CLASS_$_FIRApp", referenced from:

      objc-class-ref in firebase(app_ios_0d9822969971d805b6c1fe1da95ac6eb.o)

  "_OBJC_CLASS_$_FIRAuth", referenced from:

      objc-class-ref in firebase_auth(auth_ios_f2d260118c71437a29dfd0bb1f84c2b2.o)

  "_OBJC_CLASS_$_FIRTwitterAuthProvider", referenced from:

      objc-class-ref in firebase_auth(credential_ios_b6ca7470a6ed6b7578fa38adb90929b3.o)

  "_OBJC_CLASS_$_FIROptions", referenced from:

      objc-class-ref in firebase(app_ios_0d9822969971d805b6c1fe1da95ac6eb.o)

ld: symbol(s) not found for architecture x86_64

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



Since I added the Frameworks, I should not need to convert the project to a CocoaPods project, correct?


Are there other things I'm not doing that need to be done to compile correctly?


--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/92f14ba7-808e-4e04-aef5-110f5c82828f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages