【发布时间】:2020-01-24 07:03:57
【问题描述】:
我正在尝试在我的 iOS 应用中调用 Firebase Analytics,但在编译项目时出现错误。
我创建了一个框架,并从该框架调用 firebase 分析,但我不明白会出现以下错误。
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_FIRAnalytics", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Showing Recent Errors Only
:-1: Undefined symbol: _OBJC_CLASS_$_FIRAnalytics
下面是我的应用结构
- iOS 应用
- MyCustom 框架
- 视图控制器
- MyCustom 框架
【问题讨论】:
-
我以前见过这个。对我们有用的唯一解决方法是将 Firebase 链接到主要目标而不是框架
-
是的,我已将 firebase 链接到主要目标
标签: ios swift firebase frameworks firebase-analytics