【问题标题】:Undefined symbols for architecture x86_64: for Firebase in Xcode 8.3.2架构 x86_64 的未定义符号:用于 Xcode 8.3.2 中的 Firebase
【发布时间】:2017-10-31 23:03:54
【问题描述】:

我手动将 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)

【问题讨论】:

  • 您找到解决此问题的方法了吗?
  • 唯一的解决方案是将 Xcode 升级到 9.0/9.1

标签: ios swift xcode firebase


【解决方案1】:

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

【讨论】:

  • 如果我在 Xcode 构建设置的 Linked flags 中添加它,它会显示跟随链接器错误 ld: framework not found -licucore clang: error: linker command failed with exit code 1 (使用 -v 查看调用)
猜你喜欢
  • 2018-03-07
  • 1970-01-01
  • 1970-01-01
  • 2017-10-26
  • 2017-07-06
  • 2021-03-12
  • 2016-11-07
  • 2015-11-24
  • 2013-03-09
相关资源
最近更新 更多