Unity Firebase iOS构建未定义符号:_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)

请让我跪下来求你

OpenUnity-iPhone.xcworkspacenotUnity-iPhone.xcodeproj

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

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

https://stackoverflow.com/a/65334677

相关内容

  • 没有找到相关文章

最新更新