美文网首页
【问题随手记】引入 Firebase 导致编译报错

【问题随手记】引入 Firebase 导致编译报错

作者: name007 | 来源:发表于2020-07-01 09:39 被阅读0次
ld: warning: ignoring file /Users/rafaeldepaula/Developer/workspaces/xcode/ubook-reader-ios/Carthage/Build/iOS/FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics, file was built for archive which is not the architecture being linked (arm64): /Users/rafaeldepaula/Developer/workspaces/xcode/ubook-reader-ios/Carthage/Build/iOS/FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics
Undefined symbols for architecture arm64:
  "_GULSetLoggerLevel", referenced from:
      _FIRSetLoggerLevel in FirebaseCore(FIRLogger.o)
  "_GULLoggerRegisterVersion", referenced from:
      ___FIRLoggerInitializeASL_block_invoke in FirebaseCore(FIRLogger.o)
  "_GULLoggerInitializeASL", referenced from:
      ___FIRLoggerInitializeASL_block_invoke in FirebaseCore(FIRLogger.o)
  "_GULLoggerEnableSTDERR", referenced from:
      ___FIRLoggerInitializeASL_block_invoke in FirebaseCore(FIRLogger.o)
  "_GULLoggerForceDebug", referenced from:
      ___FIRLoggerInitializeASL_block_invoke in FirebaseCore(FIRLogger.o)
  "_OBJC_CLASS_$_APMAnalytics", referenced from:
      objc-class-ref in FirebaseAnalytics(FIRAnalytics_b1a58c0e5ea47877b382a92fe9c18663.o)
  "_kAPMMonitorLogTagOptionKey", referenced from:
      +[FIRAnalytics startWithConfiguration:options:] in FirebaseAnalytics(FIRAnalytics_b1a58c0e5ea47877b382a92fe9c18663.o)
  "_gAPMAppMeasurementLibraryVersion", referenced from:
      +[FIRAnalytics initialize] in FirebaseAnalytics(FIRAnalytics_b1a58c0e5ea47877b382a92fe9c18663.o)
  "_kAPMIsAnalyticsCollectionEnabled", referenced from:
      +[FIRAnalytics startWithConfiguration:options:] in FirebaseAnalytics(FIRAnalytics_b1a58c0e5ea47877b382a92fe9c18663.o)
  "_OBJC_METACLASS_$_APMMeasurement", referenced from:
      _OBJC_METACLASS_$_FIRAMeasurement in FirebaseAnalytics(FIRAMeasurement_f52e0c5ecf54f9c787ce3f87e5967010.o)
  "_APMFormattedUserPropertyName", referenced from:
      +[FIRAnalytics setUserPropertyString:forName:] in FirebaseAnalytics(FIRAnalytics_b1a58c0e5ea47877b382a92fe9c18663.o)
  "_OBJC_CLASS_$_GULUserDefaults", referenced from:
      objc-class-ref in FirebaseInstanceID(FIRInstanceIDStore_23ba01eb205a3ad2c36924a6df31712c.o)
      objc-class-ref in FirebaseInstanceID(FIRInstanceIDCheckinPreferences_36766016f801e2f19278d2e4a3dc9dc2.o)
      objc-class-ref in FirebaseInstanceID(FIRInstanceIDUtilities_6068b4cdd1114b87139202a3c6ae828a.o)
  "_OBJC_METACLASS_$_APMSessionReporter", referenced from:
      _OBJC_METACLASS_$_FIRASessionReporter in FirebaseAnalytics(FIRASessionReporter_4f1a6411673b017977c8eb9f3105197e.o)
  "_OBJC_CLASS_$_APMValue", referenced from:
      _OBJC_CLASS_$_FIRAValue in FirebaseAnalytics(FIRAValue_4c21b84a5eb3e0e007a633cfb3ce3bd9.o)
  "_OBJC_CLASS_$_APMMeasurement", referenced from:
      objc-class-ref in FirebaseAnalytics(FIRAMeasurement_f52e0c5ecf54f9c787ce3f87e5967010.o)
      _OBJC_CLASS_$_FIRAMeasurement in FirebaseAnalytics(FIRAMeasurement_f52e0c5ecf54f9c787ce3f87e5967010.o)
      objc-class-ref in FirebaseAnalytics(FIRAnalytics_b1a58c0e5ea47877b382a92fe9c18663.o)
  "_OBJC_METACLASS_$_APMAdExposureReporter", referenced from:
      _OBJC_METACLASS_$_FIRAAdExposureReporter in FirebaseAnalytics(FIRAAdExposureReporter_e516d08bfa5acfab876b4af79741d03b.o)
  "_OBJC_METACLASS_$_APMConditionalUserProperty", referenced from:
      _OBJC_METACLASS_$_FIRAConditionalUserProperty in FirebaseAnalytics(FIRAConditionalUserProperty_da9132874cf18b1013457ad70c30ebd4.o)
  "_OBJC_METACLASS_$_APMScreenViewReporter", referenced from:
      _OBJC_METACLASS_$_FIRAScreenViewReporter in FirebaseAnalytics(FIRAScreenViewReporter_a7e399dc552c107f9958a5a21dc3ebb8.o)
  "_OBJC_CLASS_$_APMScreenViewReporter", referenced from:
      objc-class-ref in FirebaseAnalytics(FIRAScreenViewReporter_a7e399dc552c107f9958a5a21dc3ebb8.o)
      _OBJC_CLASS_$_FIRAScreenViewReporter in FirebaseAnalytics(FIRAScreenViewReporter_a7e399dc552c107f9958a5a21dc3ebb8.o)
  "_OBJC_CLASS_$_APMAdExposureReporter", referenced from:
      _OBJC_CLASS_$_FIRAAdExposureReporter in FirebaseAnalytics(FIRAAdExposureReporter_e516d08bfa5acfab876b4af79741d03b.o)
  "_APMFormattedEventName", referenced from:
      +[FIRAnalytics logEventWithOrigin:name:parameters:] in FirebaseAnalytics(FIRAnalytics_b1a58c0e5ea47877b382a92fe9c18663.o)
  "_OBJC_CLASS_$_APMConditionalUserProperty", referenced from:
      _OBJC_CLASS_$_FIRAConditionalUserProperty in FirebaseAnalytics(FIRAConditionalUserProperty_da9132874cf18b1013457ad70c30ebd4.o)
  "_OBJC_CLASS_$_APMEvent", referenced from:
      _OBJC_CLASS_$_FIRAEvent in FirebaseAnalytics(FIRAEvent_ab10ffd6164e49ea076c16409eba95e0.o)
  "_kAPMSafelistedEventsOptionKey", referenced from:
      +[FIRAnalytics startWithConfiguration:options:] in FirebaseAnalytics(FIRAnalytics_b1a58c0e5ea47877b382a92fe9c18663.o)
  "_OBJC_METACLASS_$_APMEvent", referenced from:
      _OBJC_METACLASS_$_FIRAEvent in FirebaseAnalytics(FIRAEvent_ab10ffd6164e49ea076c16409eba95e0.o)
  "_kAPMIsAnalyticsCollectionDeactivated", referenced from:
      +[FIRAnalytics startWithConfiguration:options:] in FirebaseAnalytics(FIRAnalytics_b1a58c0e5ea47877b382a92fe9c18663.o)
  "_OBJC_CLASS_$_APMConditionalUserPropertyController", referenced from:
      _OBJC_CLASS_$_FIRAConditionalUserPropertyController in FirebaseAnalytics(FIRAConditionalUserPropertyController_391de919ca324f4205af528c2f4bf228.o)
  "_OBJC_CLASS_$_APMSessionReporter", referenced from:
      _OBJC_CLASS_$_FIRASessionReporter in FirebaseAnalytics(FIRASessionReporter_4f1a6411673b017977c8eb9f3105197e.o)
  "_GULIsLoggableLevel", referenced from:
      _FIRIsLoggableLevel in FirebaseCore(FIRLogger.o)
  "_OBJC_CLASS_$_APMIdentifiers", referenced from:
      _OBJC_CLASS_$_FIRAIdentifiers in FirebaseAnalytics(FIRAIdentifiers_c39e1836577a1f413945546b36ff1a35.o)
  "_OBJC_CLASS_$_GULReachabilityChecker", referenced from:
      objc-class-ref in FirebaseMessaging(FIRMessaging.o)
  "_OBJC_METACLASS_$_APMIdentifiers", referenced from:
      _OBJC_METACLASS_$_FIRAIdentifiers in FirebaseAnalytics(FIRAIdentifiers_c39e1836577a1f413945546b36ff1a35.o)
  "_GULLogBasic", referenced from:
      _FIRLogBasic in FirebaseCore(FIRLogger.o)
  "_OBJC_METACLASS_$_APMUserAttribute", referenced from:
      _OBJC_METACLASS_$_FIRAUserAttribute in FirebaseAnalytics(FIRAUserAttribute_8b920ceab4b6cf803ac8b113bb48571c.o)
  "_OBJC_CLASS_$_APMUserAttribute", referenced from:
      _OBJC_CLASS_$_FIRAUserAttribute in FirebaseAnalytics(FIRAUserAttribute_8b920ceab4b6cf803ac8b113bb48571c.o)
  "_OBJC_METACLASS_$_APMConditionalUserPropertyController", referenced from:
      _OBJC_METACLASS_$_FIRAConditionalUserPropertyController in FirebaseAnalytics(FIRAConditionalUserPropertyController_391de919ca324f4205af528c2f4bf228.o)
  "_kAPMAnalyticsConfiguration", referenced from:
      +[FIRAnalytics startWithConfiguration:options:] in FirebaseAnalytics(FIRAnalytics_b1a58c0e5ea47877b382a92fe9c18663.o)
  "_kAPMAppMeasurementOriginFirebase", referenced from:
      +[FIRAnalytics startWithConfiguration:options:] in FirebaseAnalytics(FIRAnalytics_b1a58c0e5ea47877b382a92fe9c18663.o)
  "_OBJC_METACLASS_$_APMValue", referenced from:
      _OBJC_METACLASS_$_FIRAValue in FirebaseAnalytics(FIRAValue_4c21b84a5eb3e0e007a633cfb3ce3bd9.o)
  "_OBJC_CLASS_$_GULAppEnvironmentUtil", referenced from:
      objc-class-ref in FirebaseMessaging(FIRMessagingReceiver.o)
      objc-class-ref in FirebaseMessaging(FIRMessagingAnalytics.o)
      objc-class-ref in FirebaseMessaging(FIRMessagingUtilities.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

解决方案
引入 GoogleAppMeasurement.framework GoogleUtilities.framework

相关文章

网友评论

      本文标题:【问题随手记】引入 Firebase 导致编译报错

      本文链接:https://www.haomeiwen.com/subject/vatcqktx.html