React-native-firebase: CocoaPods could not find compatible versions for pod "Firebase/Core": In snapshot (Podfile.lock): Firebase/Core (= 6.22.0)

Created on 14 Apr 2020  路  27Comments  路  Source: invertase/react-native-firebase

I am trying to integrate Firebase notification and it's not working for ios only for android device notification working as expected. Searching for the solution I found that I need to install the following libraries to receive push notification and I integrated it using the following command.

1)npm i @react-native-firebase/app
2)npm i @react-native-firebase/messaging

After the successful installation of the above libraries when I am trying to install pod for ios project then I am getting the issue attached in following image.

Screenshot 2020-04-15 at 1 36 08 AM

I am using react-native-community/push-notification-ios library for firebase notification.

I am stuck around this issue please help.

Most helpful comment

Run pod install --repo-update This should work.

All 27 comments

You have mixed react-native-firebase 5.6.0 and 6.4.0, and skipped the template so I can't say exactly what is going on in package.json or Podfile, but that's the ticket - it's in the version numbers 'In Podfile' above

So how to resolve it @mikehardy , any direction would be helpful

@mikehardy , Thanks for your quick reply. As you are telling react-native-firebase mixed up but it only happens when I tried to tun with messaging. But I am not getting where that files are mixed up.
Please have look in Podfile, Podfile,package-lock, Package attached below. It will be helpful to me.

Podfile.lock.pdf
Podfile.pdf
package-lock.pdf
Package.pdf

I'm not downloading looking at PDFs, sorry. Post text here, use markdown to make formatting palatable (that would be enclosing file contents in triple-backticks and for podfiles a ruby designation like

 this would be ruby code

The way to resolve it is to install either react-native-firebase v5 (like so https://github.com/mikehardy/rnfbdemo/blob/master/make-demo.sh )

Or react-native-firebase v6 (like so https://github.com/mikehardy/rnfbdemo/blob/master/make-demo-v6.sh )

But not both

This is Podfile.

platform :ios, '9.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
use_frameworks!


target 'BeaconLearning' do
  # Pods for BeaconLearning
  pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
  pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
  pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
  pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
  pod 'React', :path => '../node_modules/react-native/'
  pod 'React-Core', :path => '../node_modules/react-native/'
  pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
  pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'
  pod 'BVLinearGradient', :path => '../node_modules/react-native-linear-gradient'


  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"
  pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
  pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

pod 'react-native-branch', :path => '../node_modules/react-native-branch'

  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

  pod 'QBImagePickerController', :path => '../node_modules/react-native-image-crop-picker/ios/QBImagePicker/QBImagePickerController.podspec'
  pod 'RNImageCropPicker', :path => '../node_modules/react-native-image-crop-picker'

  pod 'Firebase/Crashlytics'
  pod 'FirebaseCore'
  pod 'Firebase/Messaging'


  # Recommended: Add the Firebase pod for Google Analytics
  pod 'Firebase/Analytics'

 pod 'Drift','~> 2.2.11',:modular_headers => true




  pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'

  pod 'react-native-video', :path => '../node_modules/react-native-video'

  pod 'RNFirebase', :path => '../node_modules/react-native-firebase/ios'

  pod 'RNCPushNotificationIOS', :path => '../node_modules/@react-native-community/push-notification-ios/RNCPushNotificationIOS.podspec'


  target 'BeaconLearningTests' do
    inherit! :search_paths
    # Pods for testing
  end

  use_native_modules!
end

target 'BeaconLearning-tvOS' do
  # Pods for BeaconLearning-tvOS

  target 'BeaconLearning-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

**This is Podfile.lock**

PODS:
  - Alamofire (4.9.1)
  - AlamofireImage (3.6.0):
    - Alamofire (~> 4.9)
  - boost-for-react-native (1.63.0)
  - Branch (0.31.3):
    - Branch/Core (= 0.31.3)
  - Branch/Core (0.31.3)
  - BVLinearGradient (2.5.6):
    - React
  - Crashlytics (3.14.0):
    - Fabric (~> 1.10.2)
  - DoubleConversion (1.1.6)
  - Drift (2.2.11):
    - AlamofireImage (~> 3.0)
    - ObjectMapper (~> 3.0)
    - Starscream
    - SVProgressHUD (~> 2.0)
  - Fabric (1.10.2)
  - FBLazyVector (0.61.4)
  - FBReactNativeSpec (0.61.4):
    - Folly (= 2018.10.22.00)
    - RCTRequired (= 0.61.4)
    - RCTTypeSafety (= 0.61.4)
    - React-Core (= 0.61.4)
    - React-jsi (= 0.61.4)
    - ReactCommon/turbomodule/core (= 0.61.4)
  - Firebase/Analytics (6.16.0):
    - Firebase/Core
  - Firebase/Core (6.16.0):
    - Firebase/CoreOnly
    - FirebaseAnalytics (= 6.2.2)
  - Firebase/CoreOnly (6.16.0):
    - FirebaseCore (= 6.6.1)
  - Firebase/Crashlytics (6.16.0):
    - Firebase/CoreOnly
    - FirebaseCrashlytics (~> 4.0.0-beta.2)
  - Firebase/Messaging (6.16.0):
    - Firebase/CoreOnly
    - FirebaseMessaging (~> 4.2.0)
  - FirebaseAnalytics (6.2.2):
    - FirebaseCore (~> 6.6)
    - FirebaseInstanceID (~> 4.3)
    - GoogleAppMeasurement (= 6.2.2)
    - GoogleUtilities/AppDelegateSwizzler (~> 6.0)
    - GoogleUtilities/MethodSwizzler (~> 6.0)
    - GoogleUtilities/Network (~> 6.0)
    - "GoogleUtilities/NSData+zlib (~> 6.0)"
    - nanopb (= 0.3.9011)
  - FirebaseAnalyticsInterop (1.5.0)
  - FirebaseCore (6.6.1):
    - FirebaseCoreDiagnostics (~> 1.2)
    - FirebaseCoreDiagnosticsInterop (~> 1.2)
    - GoogleUtilities/Environment (~> 6.5)
    - GoogleUtilities/Logger (~> 6.5)
  - FirebaseCoreDiagnostics (1.2.0):
    - FirebaseCoreDiagnosticsInterop (~> 1.2)
    - GoogleDataTransportCCTSupport (~> 1.3)
    - GoogleUtilities/Environment (~> 6.5)
    - GoogleUtilities/Logger (~> 6.5)
    - nanopb (~> 0.3.901)
  - FirebaseCoreDiagnosticsInterop (1.2.0)
  - FirebaseCrashlytics (4.0.0-beta.5):
    - FirebaseAnalyticsInterop (~> 1.2)
    - FirebaseCore (~> 6.6)
    - FirebaseInstallations (~> 1.1)
    - PromisesObjC (~> 1.2)
  - FirebaseInstallations (1.1.0):
    - FirebaseCore (~> 6.6)
    - GoogleUtilities/UserDefaults (~> 6.5)
    - PromisesObjC (~> 1.2)
  - FirebaseInstanceID (4.3.2):
    - FirebaseCore (~> 6.6)
    - FirebaseInstallations (~> 1.0)
    - GoogleUtilities/Environment (~> 6.5)
    - GoogleUtilities/UserDefaults (~> 6.5)
  - FirebaseMessaging (4.2.1):
    - FirebaseAnalyticsInterop (~> 1.5)
    - FirebaseCore (~> 6.6)
    - FirebaseInstanceID (~> 4.3)
    - GoogleUtilities/AppDelegateSwizzler (~> 6.5)
    - GoogleUtilities/Environment (~> 6.5)
    - GoogleUtilities/Reachability (~> 6.5)
    - GoogleUtilities/UserDefaults (~> 6.5)
    - Protobuf (>= 3.9.2, ~> 3.9)
  - Folly (2018.10.22.00):
    - boost-for-react-native
    - DoubleConversion
    - Folly/Default (= 2018.10.22.00)
    - glog
  - Folly/Default (2018.10.22.00):
    - boost-for-react-native
    - DoubleConversion
    - glog
  - glog (0.3.5)
  - GoogleAppMeasurement (6.2.2):
    - GoogleUtilities/AppDelegateSwizzler (~> 6.0)
    - GoogleUtilities/MethodSwizzler (~> 6.0)
    - GoogleUtilities/Network (~> 6.0)
    - "GoogleUtilities/NSData+zlib (~> 6.0)"
    - nanopb (= 0.3.9011)
  - GoogleDataTransport (3.3.1)
  - GoogleDataTransportCCTSupport (1.3.1):
    - GoogleDataTransport (~> 3.3)
    - nanopb (~> 0.3.901)
  - GoogleUtilities/AppDelegateSwizzler (6.5.1):
    - GoogleUtilities/Environment
    - GoogleUtilities/Logger
    - GoogleUtilities/Network
  - GoogleUtilities/Environment (6.5.1)
  - GoogleUtilities/Logger (6.5.1):
    - GoogleUtilities/Environment
  - GoogleUtilities/MethodSwizzler (6.5.1):
    - GoogleUtilities/Logger
  - GoogleUtilities/Network (6.5.1):
    - GoogleUtilities/Logger
    - "GoogleUtilities/NSData+zlib"
    - GoogleUtilities/Reachability
  - "GoogleUtilities/NSData+zlib (6.5.1)"
  - GoogleUtilities/Reachability (6.5.1):
    - GoogleUtilities/Logger
  - GoogleUtilities/UserDefaults (6.5.1):
    - GoogleUtilities/Logger
  - nanopb (0.3.9011):
    - nanopb/decode (= 0.3.9011)
    - nanopb/encode (= 0.3.9011)
  - nanopb/decode (0.3.9011)
  - nanopb/encode (0.3.9011)
  - ObjectMapper (3.5.1)
  - PromisesObjC (1.2.8)
  - Protobuf (3.11.4)
  - QBImagePickerController (3.4.0)
  - RCTRequired (0.61.4)
  - RCTTypeSafety (0.61.4):
    - FBLazyVector (= 0.61.4)
    - Folly (= 2018.10.22.00)
    - RCTRequired (= 0.61.4)
    - React-Core (= 0.61.4)
  - React (0.61.4):
    - React-Core (= 0.61.4)
    - React-Core/DevSupport (= 0.61.4)
    - React-Core/RCTWebSocket (= 0.61.4)
    - React-RCTActionSheet (= 0.61.4)
    - React-RCTAnimation (= 0.61.4)
    - React-RCTBlob (= 0.61.4)
    - React-RCTImage (= 0.61.4)
    - React-RCTLinking (= 0.61.4)
    - React-RCTNetwork (= 0.61.4)
    - React-RCTSettings (= 0.61.4)
    - React-RCTText (= 0.61.4)
    - React-RCTVibration (= 0.61.4)
  - React-Core (0.61.4):
    - Folly (= 2018.10.22.00)
    - glog
    - React-Core/Default (= 0.61.4)
    - React-cxxreact (= 0.61.4)
    - React-jsi (= 0.61.4)
    - React-jsiexecutor (= 0.61.4)
    - Yoga
  - React-Core/CoreModulesHeaders (0.61.4):
    - Folly (= 2018.10.22.00)
    - glog
    - React-Core/Default
    - React-cxxreact (= 0.61.4)
    - React-jsi (= 0.61.4)
    - React-jsiexecutor (= 0.61.4)
    - Yoga
  - React-Core/Default (0.61.4):
    - Folly (= 2018.10.22.00)
    - glog
    - React-cxxreact (= 0.61.4)
    - React-jsi (= 0.61.4)
    - React-jsiexecutor (= 0.61.4)
    - Yoga
  - React-Core/DevSupport (0.61.4):
    - Folly (= 2018.10.22.00)
    - glog
    - React-Core/Default (= 0.61.4)
    - React-Core/RCTWebSocket (= 0.61.4)
    - React-cxxreact (= 0.61.4)
    - React-jsi (= 0.61.4)
    - React-jsiexecutor (= 0.61.4)
    - React-jsinspector (= 0.61.4)
    - Yoga
  - React-Core/RCTActionSheetHeaders (0.61.4):
    - Folly (= 2018.10.22.00)
    - glog
    - React-Core/Default
    - React-cxxreact (= 0.61.4)
    - React-jsi (= 0.61.4)
    - React-jsiexecutor (= 0.61.4)
    - Yoga
  - React-Core/RCTAnimationHeaders (0.61.4):
    - Folly (= 2018.10.22.00)
    - glog
    - React-Core/Default
    - React-cxxreact (= 0.61.4)
    - React-jsi (= 0.61.4)
    - React-jsiexecutor (= 0.61.4)
    - Yoga
  - React-Core/RCTBlobHeaders (0.61.4):
    - Folly (= 2018.10.22.00)
    - glog
    - React-Core/Default
    - React-cxxreact (= 0.61.4)
    - React-jsi (= 0.61.4)
    - React-jsiexecutor (= 0.61.4)
    - Yoga
  - React-Core/RCTImageHeaders (0.61.4):
    - Folly (= 2018.10.22.00)
    - glog
    - React-Core/Default
    - React-cxxreact (= 0.61.4)
    - React-jsi (= 0.61.4)
    - React-jsiexecutor (= 0.61.4)
    - Yoga
  - React-Core/RCTLinkingHeaders (0.61.4):
    - Folly (= 2018.10.22.00)
    - glog
    - React-Core/Default
    - React-cxxreact (= 0.61.4)
    - React-jsi (= 0.61.4)
    - React-jsiexecutor (= 0.61.4)
    - Yoga
  - React-Core/RCTNetworkHeaders (0.61.4):
    - Folly (= 2018.10.22.00)
    - glog
    - React-Core/Default
    - React-cxxreact (= 0.61.4)
    - React-jsi (= 0.61.4)
    - React-jsiexecutor (= 0.61.4)
    - Yoga
  - React-Core/RCTSettingsHeaders (0.61.4):
    - Folly (= 2018.10.22.00)
    - glog
    - React-Core/Default
    - React-cxxreact (= 0.61.4)
    - React-jsi (= 0.61.4)
    - React-jsiexecutor (= 0.61.4)
    - Yoga
  - React-Core/RCTTextHeaders (0.61.4):
    - Folly (= 2018.10.22.00)
    - glog
    - React-Core/Default
    - React-cxxreact (= 0.61.4)
    - React-jsi (= 0.61.4)
    - React-jsiexecutor (= 0.61.4)
    - Yoga
  - React-Core/RCTVibrationHeaders (0.61.4):
    - Folly (= 2018.10.22.00)
    - glog
    - React-Core/Default
    - React-cxxreact (= 0.61.4)
    - React-jsi (= 0.61.4)
    - React-jsiexecutor (= 0.61.4)
    - Yoga
  - React-Core/RCTWebSocket (0.61.4):
    - Folly (= 2018.10.22.00)
    - glog
    - React-Core/Default (= 0.61.4)
    - React-cxxreact (= 0.61.4)
    - React-jsi (= 0.61.4)
    - React-jsiexecutor (= 0.61.4)
    - Yoga
  - React-CoreModules (0.61.4):
    - FBReactNativeSpec (= 0.61.4)
    - Folly (= 2018.10.22.00)
    - RCTTypeSafety (= 0.61.4)
    - React-Core/CoreModulesHeaders (= 0.61.4)
    - React-RCTImage (= 0.61.4)
    - ReactCommon/turbomodule/core (= 0.61.4)
  - React-cxxreact (0.61.4):
    - boost-for-react-native (= 1.63.0)
    - DoubleConversion
    - Folly (= 2018.10.22.00)
    - glog
    - React-jsinspector (= 0.61.4)
  - React-jsi (0.61.4):
    - boost-for-react-native (= 1.63.0)
    - DoubleConversion
    - Folly (= 2018.10.22.00)
    - glog
    - React-jsi/Default (= 0.61.4)
  - React-jsi/Default (0.61.4):
    - boost-for-react-native (= 1.63.0)
    - DoubleConversion
    - Folly (= 2018.10.22.00)
    - glog
  - React-jsiexecutor (0.61.4):
    - DoubleConversion
    - Folly (= 2018.10.22.00)
    - glog
    - React-cxxreact (= 0.61.4)
    - React-jsi (= 0.61.4)
  - React-jsinspector (0.61.4)
  - react-native-branch (4.3.0):
    - Branch (= 0.31.3)
    - React
  - react-native-image-picker (1.1.0):
    - React
  - react-native-netinfo (4.6.0):
    - React
  - react-native-video (5.0.2):
    - React
    - react-native-video/Video (= 5.0.2)
  - react-native-video/Video (5.0.2):
    - React
  - react-native-webview (7.5.1):
    - React
  - React-RCTActionSheet (0.61.4):
    - React-Core/RCTActionSheetHeaders (= 0.61.4)
  - React-RCTAnimation (0.61.4):
    - React-Core/RCTAnimationHeaders (= 0.61.4)
  - React-RCTBlob (0.61.4):
    - React-Core/RCTBlobHeaders (= 0.61.4)
    - React-Core/RCTWebSocket (= 0.61.4)
    - React-jsi (= 0.61.4)
    - React-RCTNetwork (= 0.61.4)
  - React-RCTImage (0.61.4):
    - React-Core/RCTImageHeaders (= 0.61.4)
    - React-RCTNetwork (= 0.61.4)
  - React-RCTLinking (0.61.4):
    - React-Core/RCTLinkingHeaders (= 0.61.4)
  - React-RCTNetwork (0.61.4):
    - React-Core/RCTNetworkHeaders (= 0.61.4)
  - React-RCTSettings (0.61.4):
    - React-Core/RCTSettingsHeaders (= 0.61.4)
  - React-RCTText (0.61.4):
    - React-Core/RCTTextHeaders (= 0.61.4)
  - React-RCTVibration (0.61.4):
    - React-Core/RCTVibrationHeaders (= 0.61.4)
  - ReactCommon/jscallinvoker (0.61.4):
    - DoubleConversion
    - Folly (= 2018.10.22.00)
    - glog
    - React-cxxreact (= 0.61.4)
  - ReactCommon/turbomodule/core (0.61.4):
    - DoubleConversion
    - Folly (= 2018.10.22.00)
    - glog
    - React-Core (= 0.61.4)
    - React-cxxreact (= 0.61.4)
    - React-jsi (= 0.61.4)
    - ReactCommon/jscallinvoker (= 0.61.4)
  - RNCAsyncStorage (1.7.0):
    - React
  - RNCPushNotificationIOS (1.1.0):
    - React
  - RNExitApp (1.1.0):
    - React
  - RNFirebase (5.6.0):
    - Firebase/Core
    - React
    - RNFirebase/Crashlytics (= 5.6.0)
  - RNFirebase/Crashlytics (5.6.0):
    - Crashlytics
    - Fabric
    - Firebase/Core
    - React
  - RNGestureHandler (1.5.0):
    - React
  - RNImageCropPicker (0.26.1):
    - QBImagePickerController
    - React-Core
    - React-RCTImage
    - RSKImageCropper
  - RNLocalize (1.3.1):
    - React
  - RNVectorIcons (6.6.0):
    - React
  - RSKImageCropper (2.2.3)
  - Starscream (3.1.1)
  - SVProgressHUD (2.2.5)
  - Yoga (1.14.0)

DEPENDENCIES:
  - BVLinearGradient (from `../node_modules/react-native-linear-gradient`)
  - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
  - Drift (~> 2.2.11)
  - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
  - FBReactNativeSpec (from `../node_modules/react-native/Libraries/FBReactNativeSpec`)
  - Firebase/Analytics
  - Firebase/Crashlytics
  - Firebase/Messaging
  - FirebaseCore
  - Folly (from `../node_modules/react-native/third-party-podspecs/Folly.podspec`)
  - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
  - QBImagePickerController (from `../node_modules/react-native-image-crop-picker/ios/QBImagePicker/QBImagePickerController.podspec`)
  - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`)
  - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`)
  - React (from `../node_modules/react-native/`)
  - React-Core (from `../node_modules/react-native/`)
  - React-Core/DevSupport (from `../node_modules/react-native/`)
  - React-Core/RCTWebSocket (from `../node_modules/react-native/`)
  - React-CoreModules (from `../node_modules/react-native/React/CoreModules`)
  - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`)
  - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`)
  - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`)
  - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
  - react-native-branch (from `../node_modules/react-native-branch`)
  - react-native-image-picker (from `../node_modules/react-native-image-picker`)
  - "react-native-netinfo (from `../node_modules/@react-native-community/netinfo`)"
  - react-native-video (from `../node_modules/react-native-video`)
  - react-native-webview (from `../node_modules/react-native-webview`)
  - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
  - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`)
  - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`)
  - React-RCTImage (from `../node_modules/react-native/Libraries/Image`)
  - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`)
  - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`)
  - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`)
  - React-RCTText (from `../node_modules/react-native/Libraries/Text`)
  - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`)
  - ReactCommon/jscallinvoker (from `../node_modules/react-native/ReactCommon`)
  - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
  - "RNCAsyncStorage (from `../node_modules/@react-native-community/async-storage`)"
  - "RNCPushNotificationIOS (from `../node_modules/@react-native-community/push-notification-ios/RNCPushNotificationIOS.podspec`)"
  - RNExitApp (from `../node_modules/react-native-exit-app`)
  - RNFirebase (from `../node_modules/react-native-firebase/ios`)
  - RNGestureHandler (from `../node_modules/react-native-gesture-handler`)
  - RNImageCropPicker (from `../node_modules/react-native-image-crop-picker`)
  - RNLocalize (from `../node_modules/react-native-localize`)
  - RNVectorIcons (from `../node_modules/react-native-vector-icons`)
  - Yoga (from `../node_modules/react-native/ReactCommon/yoga`)

SPEC REPOS:
  trunk:
    - Alamofire
    - AlamofireImage
    - boost-for-react-native
    - Branch
    - Crashlytics
    - Drift
    - Fabric
    - Firebase
    - FirebaseAnalytics
    - FirebaseAnalyticsInterop
    - FirebaseCore
    - FirebaseCoreDiagnostics
    - FirebaseCoreDiagnosticsInterop
    - FirebaseCrashlytics
    - FirebaseInstallations
    - FirebaseInstanceID
    - FirebaseMessaging
    - GoogleAppMeasurement
    - GoogleDataTransport
    - GoogleDataTransportCCTSupport
    - GoogleUtilities
    - nanopb
    - ObjectMapper
    - PromisesObjC
    - Protobuf
    - RSKImageCropper
    - Starscream
    - SVProgressHUD

EXTERNAL SOURCES:
  BVLinearGradient:
    :path: "../node_modules/react-native-linear-gradient"
  DoubleConversion:
    :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
  FBLazyVector:
    :path: "../node_modules/react-native/Libraries/FBLazyVector"
  FBReactNativeSpec:
    :path: "../node_modules/react-native/Libraries/FBReactNativeSpec"
  Folly:
    :podspec: "../node_modules/react-native/third-party-podspecs/Folly.podspec"
  glog:
    :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec"
  QBImagePickerController:
    :path: "../node_modules/react-native-image-crop-picker/ios/QBImagePicker/QBImagePickerController.podspec"
  RCTRequired:
    :path: "../node_modules/react-native/Libraries/RCTRequired"
  RCTTypeSafety:
    :path: "../node_modules/react-native/Libraries/TypeSafety"
  React:
    :path: "../node_modules/react-native/"
  React-Core:
    :path: "../node_modules/react-native/"
  React-CoreModules:
    :path: "../node_modules/react-native/React/CoreModules"
  React-cxxreact:
    :path: "../node_modules/react-native/ReactCommon/cxxreact"
  React-jsi:
    :path: "../node_modules/react-native/ReactCommon/jsi"
  React-jsiexecutor:
    :path: "../node_modules/react-native/ReactCommon/jsiexecutor"
  React-jsinspector:
    :path: "../node_modules/react-native/ReactCommon/jsinspector"
  react-native-branch:
    :path: "../node_modules/react-native-branch"
  react-native-image-picker:
    :path: "../node_modules/react-native-image-picker"
  react-native-netinfo:
    :path: "../node_modules/@react-native-community/netinfo"
  react-native-video:
    :path: "../node_modules/react-native-video"
  react-native-webview:
    :path: "../node_modules/react-native-webview"
  React-RCTActionSheet:
    :path: "../node_modules/react-native/Libraries/ActionSheetIOS"
  React-RCTAnimation:
    :path: "../node_modules/react-native/Libraries/NativeAnimation"
  React-RCTBlob:
    :path: "../node_modules/react-native/Libraries/Blob"
  React-RCTImage:
    :path: "../node_modules/react-native/Libraries/Image"
  React-RCTLinking:
    :path: "../node_modules/react-native/Libraries/LinkingIOS"
  React-RCTNetwork:
    :path: "../node_modules/react-native/Libraries/Network"
  React-RCTSettings:
    :path: "../node_modules/react-native/Libraries/Settings"
  React-RCTText:
    :path: "../node_modules/react-native/Libraries/Text"
  React-RCTVibration:
    :path: "../node_modules/react-native/Libraries/Vibration"
  ReactCommon:
    :path: "../node_modules/react-native/ReactCommon"
  RNCAsyncStorage:
    :path: "../node_modules/@react-native-community/async-storage"
  RNCPushNotificationIOS:
    :path: "../node_modules/@react-native-community/push-notification-ios/RNCPushNotificationIOS.podspec"
  RNExitApp:
    :path: "../node_modules/react-native-exit-app"
  RNFirebase:
    :path: "../node_modules/react-native-firebase/ios"
  RNGestureHandler:
    :path: "../node_modules/react-native-gesture-handler"
  RNImageCropPicker:
    :path: "../node_modules/react-native-image-crop-picker"
  RNLocalize:
    :path: "../node_modules/react-native-localize"
  RNVectorIcons:
    :path: "../node_modules/react-native-vector-icons"
  Yoga:
    :path: "../node_modules/react-native/ReactCommon/yoga"

SPEC CHECKSUMS:
  Alamofire: 85e8a02c69d6020a0d734f6054870d7ecb75cf18
  AlamofireImage: be9963c6582d68b39e89191f64c82a7d7bf40fdd
  boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c
  Branch: 9b299693ee54b308ff8c18146afe1f711c2069ec
  BVLinearGradient: e3aad03778a456d77928f594a649e96995f1c872
  Crashlytics: 540b7e5f5da5a042647227a5e3ac51d85eed06df
  DoubleConversion: 5805e889d232975c086db112ece9ed034df7a0b2
  Drift: 5364ea0af9cb63eeb5dffbdd9e3d295d9c971458
  Fabric: 706c8b8098fff96c33c0db69cbf81f9c551d0d74
  FBLazyVector: feb35a6b7f7b50f367be07f34012f34a79282fa3
  FBReactNativeSpec: 51477b84b1bf7ab6f9ef307c24e3dd675391be44
  Firebase: 497158b816d0a86fc31babbd05546fcd7e6083ff
  FirebaseAnalytics: cf95d3aab897612783020fbd98401d5366f135ee
  FirebaseAnalyticsInterop: 3f86269c38ae41f47afeb43ebf32a001f58fcdae
  FirebaseCore: 85064903ed6c28e47fec9c7bd149d94ba1b6b6e7
  FirebaseCoreDiagnostics: 5e78803ab276bc5b50340e3c539c06c3de35c649
  FirebaseCoreDiagnosticsInterop: 296e2c5f5314500a850ad0b83e9e7c10b011a850
  FirebaseCrashlytics: 7c95218730d1debf493e987233c7b41dd7ba1329
  FirebaseInstallations: 575cd32f2aec0feeb0e44f5d0110a09e5e60b47b
  FirebaseInstanceID: 7ee0d6777013bb952f377b41965bf132b6a075be
  FirebaseMessaging: 9e23f9d603b1fb71ccbeb48d79bf0d4ba0272c84
  Folly: 30e7936e1c45c08d884aa59369ed951a8e68cf51
  glog: 1f3da668190260b06b429bb211bfbee5cd790c28
  GoogleAppMeasurement: d0560d915abf15e692e8538ba1d58442217b6aff
  GoogleDataTransport: 0048df6388dab1c254799f2a30365b1dffe20422
  GoogleDataTransportCCTSupport: f880d70972efa2ed1be4e9173a0f4c5f3dc2d176
  GoogleUtilities: 06eb53bb579efe7099152735900dd04bf09e7275
  nanopb: 18003b5e52dab79db540fe93fe9579f399bd1ccd
  ObjectMapper: 70187b8941977c62ccfb423caf6b50be405cabf0
  PromisesObjC: c119f3cd559f50b7ae681fa59dc1acd19173b7e6
  Protobuf: 176220c526ad8bd09ab1fb40a978eac3fef665f7
  QBImagePickerController: d54cf93db6decf26baf6ed3472f336ef35cae022
  RCTRequired: f3b3fb6f4723e8e52facb229d0c75fdc76773849
  RCTTypeSafety: 2ec60de6abb1db050b56ecc4b60188026078fd10
  React: 10e0130b57e55a7cd8c3dee37c1261102ce295f4
  React-Core: 636212410772d05f3a1eb79d965df2962ca1c70b
  React-CoreModules: 6f70d5e41919289c582f88c9ad9923fe5c87400a
  React-cxxreact: ddecbe9157ec1743f52ea17bf8d95debc0d6e846
  React-jsi: ca921f4041505f9d5197139b2d09eeb020bb12e8
  React-jsiexecutor: 8dfb73b987afa9324e4009bdce62a18ce23d983c
  React-jsinspector: d15478d0a8ada19864aa4d1cc1c697b41b3fa92f
  react-native-branch: df34ffd1ff1f592b42455c717e55b4b01a1d17d3
  react-native-image-picker: 3637d63fef7e32a230141ab4660d3ceb773c824f
  react-native-netinfo: bd4c115afdf0821b8ddb6c59ef3ddc5f0a7e8ad0
  react-native-video: 961749da457e73bf0b5565edfbaffc25abfb8974
  react-native-webview: b7ad1323338cb52e370bb07d6141308953ff2440
  React-RCTActionSheet: 7369b7c85f99b6299491333affd9f01f5a130c22
  React-RCTAnimation: d07be15b2bd1d06d89417eb0343f98ffd2b099a7
  React-RCTBlob: 8e0b23d95c9baa98f6b0e127e07666aaafd96c34
  React-RCTImage: 443050d14a66e8c2332e9c055f45689d23e15cc7
  React-RCTLinking: ce9a90ba155aec41be49e75ec721bbae2d48a47e
  React-RCTNetwork: 41fe54bacc67dd00e6e4c4d30dd98a13e4beabc8
  React-RCTSettings: 45e3e0a6470310b2dab2ccc6d1d73121ba3ea936
  React-RCTText: 21934e0a51d522abcd0a275407e80af45d6fd9ec
  React-RCTVibration: 0f76400ee3cec6edb9c125da49fed279340d145a
  ReactCommon: a6a294e7028ed67b926d29551aa9394fd989c24c
  RNCAsyncStorage: e9f3eb4fbd5d0d1713051ffbd60968110172d6e9
  RNCPushNotificationIOS: de54f074e577e684c0619d4271a5b451e8a37ee1
  RNExitApp: 7d81855142a4d11eb75f4f06fdebf5a950d7aef2
  RNFirebase: 37daa9a346d070f9f6ee1f3b4aaf4c8e3b1d5d1c
  RNGestureHandler: a4ddde1ffc6e590c8127b8b7eabfdade45475c74
  RNImageCropPicker: e1d8c3381e5b05a1bdcd13ea57a4f1c020a09cef
  RNLocalize: c117094a6c5a955c94e65520ad4c726e3a0f4ed6
  RNVectorIcons: 0bb4def82230be1333ddaeee9fcba45f0b288ed4
  RSKImageCropper: a446db0e8444a036b34f3c43db01b2373baa4b2a
  Starscream: 4bb2f9942274833f7b4d296a55504dcfc7edb7b0
  SVProgressHUD: 1428aafac632c1f86f62aa4243ec12008d7a51d6
  Yoga: ba3d99dbee6c15ea6bbe3783d1f0cb1ffb79af0f

PODFILE CHECKSUM: 649fc168de1ff873a8955680babd5ae5c4af5405

COCOAPODS: 1.9.1

**This is Package.json file**

{
  "name": "BeaconLearning",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest",
    "lint": "eslint ."
  },
  "dependencies": {
    "@react-native-community/async-storage": "^1.7.0",
    "@react-native-community/netinfo": "^4.6.0",
    "@react-native-community/push-notification-ios": "^1.1.0",
    "@react-native-firebase/app": "^6.4.0",
    "@react-native-firebase/messaging": "^6.4.0",
    "axios": "^0.19.2",
    "create-react-native-module": "^0.13.0",
    "firebase": "^7.4.0",
    "moment-timezone": "^0.5.27",
    "react": "16.9.0",
    "react-devtools": "^4.2.0",
    "react-native": "0.61.4",
    "react-native-branch": "^4.3.0",
    "react-native-cardview": "^2.0.5",
    "react-native-confirmation-code-input": "^1.0.4",
    "react-native-deep-linking": "^2.2.0",
    "react-native-elements": "^1.2.7",
    "react-native-exit-app": "^1.1.0",
    "react-native-firebase": "^5.6.0",
    "react-native-gesture-handler": "^1.5.0",
    "react-native-html-parser": "^0.1.0",
    "react-native-image-crop-picker": "^0.26.1",
    "react-native-image-picker": "^1.1.0",
    "react-native-keyboard-aware-scroll-view": "^0.9.1",
    "react-native-linear-gradient": "^2.5.6",
    "react-native-localize": "^1.3.1",
    "react-native-material-dropdown": "^0.11.1",
    "react-native-modal": "^11.5.3",
    "react-native-paper": "^3.2.1",
    "react-native-progress": "^4.0.3",
    "react-native-push-notification": "^3.1.9",
    "react-native-render-html": "^4.2.0",
    "react-native-s3-upload": "0.0.12",
    "react-native-safe-area-view": "^1.0.0",
    "react-native-timer": "^1.3.6",
    "react-native-vector-icons": "^6.6.0",
    "react-native-video": "^5.0.2",
    "react-native-video-controls": "^2.4.0",
    "react-native-view-more-text": "^2.1.0",
    "react-native-webview": "^7.5.1",
    "react-navigation": "^4.0.10",
    "react-navigation-material-bottom-tabs": "^2.1.5",
    "react-navigation-stack": "^1.10.3",
    "react-redux": "^7.1.3",
    "redux": "^4.0.4",
    "redux-thunk": "^2.3.0",
    "save": "^2.4.0",
    "text-clipper": "^1.3.0",
    "thunk": "0.0.1"
  },
  "devDependencies": {
    "@babel/core": "7.6.4",
    "@babel/runtime": "7.6.3",
    "@react-native-community/eslint-config": "0.0.3",
    "@types/node": "^13.7.7",
    "babel-jest": "24.9.0",
    "eslint": "^6.1.0",
    "eslint-plugin-import": "^2.18.2",
    "jest": "24.9.0",
    "metro-react-native-babel-preset": "0.51.1",
    "react-test-renderer": "16.9.0"
  },
  "jest": {
    "preset": "react-native",
    "cacheDirectory": "./cache",
    "coveragePathIgnorePatterns": [
      "./app/utils/vendor"
    ],
    "coverageThreshold": {
      "global": {
        "statements": 80
      }
    },
    "transformIgnorePatterns": [
      "/node_modules/(?!react-native|react-clone-referenced-element|react-navigation|native-base-shoutem-theme|native-base|lodash|static-container|@react-navigation|react-native-rfid-nfc-scanner)"
    ],
    "setupFiles": [
      "./node_modules/react-native-gesture-handler/jestSetup.js"
    ]
  },
  "module.exports": {
    "assets": [
      "./src/assets/font/"
    ]
  }
}

Right. So you have react-native-firebase 5.6.0, and @react-native-firebase/app at 6.4.0

I quote my first reply:

You have mixed react-native-firebase 5.6.0 and 6.4.0, and skipped the template so I can't say exactly what is going on in package.json or Podfile, but that's the ticket - it's in the version numbers 'In Podfile' above

Thanks @mikehardy, As I am new in this Tech, can you please how could I downgrade the react-native-firebase/app to 5.6.0 or vice versa? Your help with this will really appreciable.

1) Remove all react-native-firebase packages + integration from your app (save the javascript code using the APIs though, if you have any)
2) My scripts linked above show exactly how to integrate each version, read them and do what they do for the version you choose. I suggest using v6 so you are current
3) make your javascript work again

Run pod install --repo-update This should work.

Thanks @afrinsulthana1 , you saved my day!

Creating a npm script in your package.json helps to not lose this stuff when you're dealing with tons of different commands in different projects. Like so:

ios:pod:install:repoupdate: "cd ./ios && pod install --repo-update"

Just delete podfile.lock work for me

Just delete podfile.lock work for me

For me too. Deleting the podfile.lock and pod install --repo-update solve the issue for me

In my case, I was coming over from Expo, and I was trying to install this while I have expo-firebase-analytics still in my package.
After removing expo-firebase-analytics and removing Podfile.lock, I ran pod install --repo-update. Then everything worked!

I have a similar issue.

I've tried deleting the Podfile.lock and running the command pod install --repo-update with no luck.

Anyone out there with some good tips? 馃槃

bilde

@7arsandre your @react-native-firebase/database dependency bears inspection. Why is it trying so hard to pull in an old version of the firebase pod? Is it out of date?

Thanks for commenting @mikehardy, it seemed to be out of date yes.

What finally worked for me was deleting the ios/Pods,ios/Podfile.lock and all the other firebase dependencies from package.json except the @react-native-firebase/app dependency. Then I removed the yarn.lock and did a new clean install with yarn, thereafter cd ios && pod install and hurray this seemed to be working. Finally I added the other firebase dependencies I needed馃槃

I am bold, I just do yarn upgrade --latest to get everything up to date (you can do yarn outdated first to see what will happen...) then rm ios/Podfile.lock and npx react-native-clean-project with yesses to everything. That'll wipe you clean and bring you current to the day! Anything that blows up completely (like current metro 0.63 for me?) I then yarn add <package>@<slightly older version> to get off the very bleeding edge.

I had the same problem, but I solved it like this

1) rm Podfile.lock
2) pod install --repo-update

have a good day ~

@wony2 thanks it worked safe me headache

if anyone still has this errror

[!] CocoaPods could not find compatible versions for pod "FBLazyVector":
  In Podfile:
    FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)

Specs satisfying the `FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)` dependency were found, but they required a higher minimum deployment target.

change platform :ios, '10.0' in Podfile (if you were on iOS 9 like me)

Just delete podfile.lock work for me

For me too. Deleting the podfile.lock and pod install --repo-update solve the issue for me

@Doha26 worked for me
Thanks
Cheers You are Boss!

if anyone still has this errror

[!] CocoaPods could not find compatible versions for pod "FBLazyVector":
  In Podfile:
    FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)

Specs satisfying the `FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)` dependency were found, but they required a higher minimum deployment target.

change platform :ios, '10.0' in Podfile (if you were on iOS 9 like me)

This worked for me!

For those with the same problem

'pod update Firebase/Core' should do the trick that is update any Firebase related modules inside your app and install with the latest versions.

change platform :ios, '10.0' in Podfile from platform :ios, '9.0'

@Amitdost you may have missed other things, make sure to check the underlying SDK references for any other breaking changes that were related to the one that required the iOS >= 10 change https://github.com/invertase/react-native-firebase/blob/master/packages/app/CHANGELOG.md#900-2020-11-10

Was this page helpful?
0 / 5 - 0 ratings