在Xcode 8.3.2火力地堡:用于建筑x86_64的未定义符号(Undefined symbol

2019-09-27 14:42发布

我安装了火力手动到我的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)

Answer 1:

它看起来像你错过添加FirebaseCore框架和-licucoreOTHER_LD_FLAGS



文章来源: Undefined symbols for architecture x86_64: for Firebase in Xcode 8.3.2