1

I'm trying to integrate Firebase to my Unity project for iOS platform following the official documentation. However, when i try to compile Unity build from XCode im facing issues like:

Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_FIRDatabaseReference", referenced from:
      objc-class-ref in libFirebaseCppDatabase.a(database_reference_ios.mm.o)
  "_OBJC_CLASS_$_FIRDatabase", referenced from:
      objc-class-ref in libFirebaseCppDatabase.a(database_ios.mm.o)
  "_OBJC_CLASS_$_FIRConfiguration", referenced from:
      objc-class-ref in libFirebaseCppApp.a(app_ios.mm.o)
  "_OBJC_CLASS_$_FIRApp", referenced from:
      objc-class-ref in libFirebaseCppApp.a(app_ios.mm.o)
  "_OBJC_CLASS_$_FIRTransactionResult", referenced from:
      objc-class-ref in libFirebaseCppDatabase.a(database_reference_ios.mm.o)
  "_OBJC_CLASS_$_FIROptions", referenced from:
      objc-class-ref in libFirebaseCppApp.a(app_ios.mm.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

pls im begging on my knees

iremkzlrmk
  • 11
  • 2

1 Answers1

2

Open Unity-iPhone.xcworkspace not Unity-iPhone.xcodeproj

if there is no Unity-iPhone.xcworkspace, run pod install

if you have a problem with cocoapods, reinstall cocoapods.

https://stackoverflow.com/a/65334677

Siwon Kim
  • 21
  • 2