繁体   English   中英

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

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

我正在尝试按照官方文档将 Firebase 集成到我的 iOS 平台的 Unity 项目中。 但是,当我尝试从 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)

请我跪下乞求

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

如果没有Unity-iPhone.xcworkspace ,运行pod install

如果 cocoapods 有问题,请重新安装 cocoapods。

https://stackoverflow.com/a/65334677

暂无
暂无

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

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