简体   繁体   English

架构x86_64的未定义符号:用于Xcode 8.3.2中的Firebase

[英]Undefined symbols for architecture x86_64: for Firebase in Xcode 8.3.2

I installed firebase by manually to my Xcode for storage data purpose. 我通过手动将Firebase安装到Xcode上以存储数据。 I followed README from DOCS and integrated. 我遵循DOCS的README并进行集成。 But, the issue is, after everything setup, I am getting following compiler errors. 但是,问题是,在完成所有设置后,我遇到了编译器错误。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM