ld:在现有React本机项目中集成react-native-firebase时找不到-lFirebaseCore的库

时间:2019-06-25 11:32:37

标签: ios firebase react-native cocoapods react-native-firebase

我已经遵循将Firebase SDK作为pod集成到react native项目中的指南(在https://rnfirebase.io/docs/v5.x.x/installation/ios中进行了描述),但是我一直碰到这个错误:

ld:未找到-lFirebaseCore的库

我的Podfile.lock:

PODS:

- AppCenter/Analytics (1.14.0):
  - AppCenter/Core
- AppCenter/Core (1.14.0)
- AppCenter/Crashes (1.14.0):
  - AppCenter/Core
- AppCenterReactNativeShared (1.13.0):
  - AppCenter/Core (= 1.14.0)
- Firebase/Core (5.20.2):
  - Firebase/CoreOnly
  - FirebaseAnalytics (= 5.8.1)
- Firebase/CoreOnly (5.20.2):
  - FirebaseCore (= 5.4.1)
- Firebase/Messaging (5.20.2):
  - Firebase/CoreOnly
  - FirebaseMessaging (= 3.5.0)
- FirebaseAnalytics (5.8.1):
  - FirebaseCore (~> 5.4)
  - FirebaseInstanceID (~> 3.8)
  - GoogleAppMeasurement (= 5.8.1)
  - GoogleUtilities/AppDelegateSwizzler (~> 5.2)
  - GoogleUtilities/MethodSwizzler (~> 5.2)
  - GoogleUtilities/Network (~> 5.2)
  - "GoogleUtilities/NSData+zlib (~> 5.2)"
  - nanopb (~> 0.3)
- FirebaseAnalyticsInterop (1.2.0)
- FirebaseCore (5.4.1):
  - GoogleUtilities/Environment (~> 5.2)
  - GoogleUtilities/Logger (~> 5.2)
- FirebaseInstanceID (3.8.1):
  - FirebaseCore (~> 5.2)
  - GoogleUtilities/Environment (~> 5.2)
  - GoogleUtilities/UserDefaults (~> 5.2)
- FirebaseMessaging (3.5.0):
  - FirebaseAnalyticsInterop (~> 1.1)
  - FirebaseCore (~> 5.2)
  - FirebaseInstanceID (~> 3.6)
  - GoogleUtilities/Environment (~> 5.3)
  - GoogleUtilities/Reachability (~> 5.3)
  - GoogleUtilities/UserDefaults (~> 5.3)
  - Protobuf (~> 3.1)
- GoogleAppMeasurement (5.8.1):
  - GoogleUtilities/AppDelegateSwizzler (~> 5.2)
  - GoogleUtilities/MethodSwizzler (~> 5.2)
  - GoogleUtilities/Network (~> 5.2)
  - "GoogleUtilities/NSData+zlib (~> 5.2)"
  - nanopb (~> 0.3)
- GoogleUtilities/AppDelegateSwizzler (5.8.0):
  - GoogleUtilities/Environment
  - GoogleUtilities/Logger
  - GoogleUtilities/Network
- GoogleUtilities/Environment (5.8.0)
- GoogleUtilities/Logger (5.8.0):
  - GoogleUtilities/Environment
- GoogleUtilities/MethodSwizzler (5.8.0):
  - GoogleUtilities/Logger
- GoogleUtilities/Network (5.8.0):
  - GoogleUtilities/Logger
  - "GoogleUtilities/NSData+zlib"
  - GoogleUtilities/Reachability
- "GoogleUtilities/NSData+zlib (5.8.0)"
- GoogleUtilities/Reachability (5.8.0):
  - GoogleUtilities/Logger
- GoogleUtilities/UserDefaults (5.8.0):
  - GoogleUtilities/Logger
- nanopb (0.3.901):
  - nanopb/decode (= 0.3.901)
  - nanopb/encode (= 0.3.901)
- nanopb/decode (0.3.901)
- nanopb/encode (0.3.901)
- Protobuf (3.8.0)

DEPENDENCIES:

- AppCenter/Analytics (~> 1.14.0)
- AppCenter/Crashes (~> 1.14.0)
- AppCenterReactNativeShared (~> 1.13.0)
- Firebase/Core (~> 5.20.1)
- Firebase/Messaging (~> 5.20.1)

SPEC REPOS:

https://github.com/cocoapods/specs.git:

- AppCenter
- AppCenterReactNativeShared
- Firebase
- FirebaseAnalytics
- FirebaseAnalyticsInterop
- FirebaseCore
- FirebaseInstanceID
- FirebaseMessaging
- GoogleAppMeasurement
- GoogleUtilities
- nanopb
- Protobuf

Podfiles:

target '<my_app_name>-devel' do
  pod 'AppCenter/Crashes', '~> 1.14.0'
  pod 'AppCenter/Analytics', '~> 1.14.0'
  pod 'AppCenterReactNativeShared', '~> 1.13.0'
  pod 'Firebase/Core', '~> 5.20.1'
  pod 'Firebase/Messaging', '~> 5.20.1'
  # Add new pods below this line

  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for <my_app_name>-devel

end

target '<my_app_name>-prod' do
  pod 'AppCenter/Crashes', '~> 1.14.0'
  pod 'AppCenter/Analytics', '~> 1.14.0'
  pod 'AppCenterReactNativeShared', '~> 1.13.0'
  pod 'Firebase/Core', '~> 5.20.1'
  pod 'Firebase/Messaging', '~> 5.20.1'
  # Add new pods below this line

  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for <my_app_name>-prod

end

原生版本:0.59.5

React Native Firebase版本:5.20.1

还尝试了以下版本:5.4.3、5.4.4

有关此文档的文档很少,因此欢迎任何帮助或建议

0 个答案:

没有答案