简体   繁体   English

unity Firebase iOS 构建未定义符号:_OBJC_CLASS_$_FIRApp

[英]Unity Firebase iOS build Undefined symbol: _OBJC_CLASS_$_FIRApp

I'm trying to integrate Firebase to my Unity project for iOS platform following the official documentation.我正在尝试按照官方文档将 Firebase 集成到我的 iOS 平台的 Unity 项目中。 However, when i try to compile Unity build from XCode im facing issues like:但是,当我尝试从 XCode 编译 Unity 构建时,我面临以下问题:

 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请我跪下乞求

Open Unity-iPhone.xcworkspace not Unity-iPhone.xcodeproj打开Unity-iPhone.xcworkspace而不是Unity-iPhone.xcodeproj

if there is no Unity-iPhone.xcworkspace , run pod install如果没有Unity-iPhone.xcworkspace ,运行pod install

if you have a problem with cocoapods, reinstall cocoapods.如果 cocoapods 有问题,请重新安装 cocoapods。

https://stackoverflow.com/a/65334677 https://stackoverflow.com/a/65334677

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM