skip to Main Content

I am developing react-native app.

I followed the firebase instruction adding my iOS app to my firebase project.

In my Podfile, I have:

pod 'Firebase/Crashlytics'
pod 'Firebase/Analytics'

when I run pod install I keep getting the error saying "CocoaPods could not find compatible versions for pod "Firebase/Crashlytics".
enter image description here

Xcode version 11.7, target iOS10.1

Why I get that error and how to get rid of it?

(I tried run pod update 'Firebase', I get:

[!] The Firebase Pod is not installed and cannot be update)

2

Answers


  1. Make sure that your project’s minimum deployment target (the one that referenced in your Podfile) is at least iOS 9 (see Firebase/Crashlytics release notes)

    Unfortunately when cocoapods initially create the Podfile, doesn’t take into account your projects minimum deployment target. Instead adds a default value in a comment.

    The first time that you run pod install you will get a warning about not specified minimum deployment target. Also cocoapods documentation doesn’t mention anything regarding this behavior.

    So, you have to have to manually edit your Podfile and add something like this:

    platform :ios, '10.1'
    
    Login or Signup to reply.
  2. No issue with the deployment target but got the same error. It was working with the following versions of Firebase

     pod 'Firebase/Core', '~> 3.0.0'
     pod 'Firebase/Crashlytics', '~> 7.0.0'
    

    When I added a new dependency and run pod install, It was showing the error for Firebase. So, I used the >= 0 in place of the version.

    pod 'Firebase/Core', '>= 0'
    pod 'FirebaseCrashlytics', '>= 0'
    

    This will install the latest version for all Firebase dependencies.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search