ios - 体系结构 x86_64 : for Firebase in Xcode 8. 3.2 的 undefined symbol

标签 ios swift xcode firebase

为了存储数据,我手动将 firebase 安装到我的 Xcode 中。我遵循了 DOCS 的 README 并进行了整合。但是,问题是,在完成所有设置后,我遇到了以下编译器错误。

Undefined symbols for architecture x86_64:
  “_kFIRAppDiagnosticsErrorKey”, referenced from:
      +[FIRDiagnostics logDiagnostics:] in FirebaseCoreDiagnostics(FIRDiagnostics_0c03a82afb19aa444c2f4902b5217b60.o)
  “_kFIRAppDiagnosticsSDKNameKey”, referenced from:
      +[FIRDiagnostics logDiagnostics:] in FirebaseCoreDiagnostics(FIRDiagnostics_0c03a82afb19aa444c2f4902b5217b60.o)
  “_kFIRAppDiagnosticsSDKVersionKey”, referenced from:
      +[FIRDiagnostics logDiagnostics:] in FirebaseCoreDiagnostics(FIRDiagnostics_0c03a82afb19aa444c2f4902b5217b60.o)
  “_kFIRAppDiagnosticsFIRAppKey”, referenced from:
      +[FIRDiagnostics logDiagnostics:] in FirebaseCoreDiagnostics(FIRDiagnostics_0c03a82afb19aa444c2f4902b5217b60.o)
  “_kFIRServiceAuthUI”, referenced from:
      +[FIRDiagnostics populateLogProtoWithInstalledServices:] in FirebaseCoreDiagnostics(FIRDiagnostics_0c03a82afb19aa444c2f4902b5217b60.o)
      +[FIRDiagnostics mapFromServiceStringToTypeEnum:] in FirebaseCoreDiagnostics(FIRDiagnostics_0c03a82afb19aa444c2f4902b5217b60.o)
  “_kFIRAppDiagnosticsNotification”, referenced from:
      +[FIRDiagnostics load] in FirebaseCoreDiagnostics(FIRDiagnostics_0c03a82afb19aa444c2f4902b5217b60.o)
  “_FIRAuthStateDidChangeInternalNotificationAppKey”, referenced from:
      -[FAuthStateListenerWrapper authStateDidChangeNotification:] in FirebaseDatabase(FAuthTokenProvider_213581f9a756863b453764defdcb42ec.o)
  “_FIRAuthStateDidChangeInternalNotificationTokenKey”, referenced from:
      -[FAuthStateListenerWrapper authStateDidChangeNotification:] in FirebaseDatabase(FAuthTokenProvider_213581f9a756863b453764defdcb42ec.o)
  “_FIRAuthStateDidChangeInternalNotification”, referenced from:
      -[FAuthStateListenerWrapper initWithListener:app:] in FirebaseDatabase(FAuthTokenProvider_213581f9a756863b453764defdcb42ec.o)
  “_kFIRAppDiagnosticsConfigurationTypeKey”, referenced from:
      +[FIRDiagnostics logDiagnostics:] in FirebaseCoreDiagnostics(FIRDiagnostics_0c03a82afb19aa444c2f4902b5217b60.o)
  “_utf8_nextCharSafeBody”, referenced from:
      -[FSRWebSocket _innerPumpScanner] in FirebaseDatabase(FSRWebSocket_221b45e2259898169b2d29adbe0c7833.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

最佳答案

您似乎错过了将 FirebaseCore 框架和 -licucore 添加到 OTHER_LD_FLAGS

关于ios - 体系结构 x86_64 : for Firebase in Xcode 8. 3.2 的 undefined symbol ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47030583/

相关文章:

ios - iOS 如何以及何时杀死长时间处于后台的应用程序?

ios - MBProgressHUD需要在主线程上访问

iphone - 我应该什么时候 promise ?

ios - 以编程方式在循环中添加带有 subview 的 View

ios - XCode 7 自动布局约束 : How to make 2 images stay horizontally in the center

iphone - 加载缓慢时 ALAsset 照片库图像性能改进

ios - Swift-检测点击 NSMutableAttributedString

ios - 无法在 View Controller 上为 Table View 和 Segmented Control 添加约束

ios - [UIViewController initWithCoder :] causes debugger to freeze 上的符号断点

ios - 模块 'Darwin' : Darwin -> Medialib -> UIKit -> Darwin 中的循环依赖