2

I am trying to update, Firebase version to 8.4.0 and running into following error. To update, I specified the Firebase/Core, Firebase/Crashlytics, Firebase/Performance's version to 8.4.0 in my pod file. Now, when running pod install, I got following error.

 Firebase/Crashlytics (~> 8.4.0) was resolved to 8.4.0, which depends on
  FirebaseCrashlytics (~> 8.4.0) was resolved to 8.4.0, which depends on
    nanopb (~> 2.30908.0)

I tried the solution that is provided online - rm -rf Podfile.lock, but no luck. Any idea, how to update nanopb too. Or what could be some other probable solutions.

Natasha
  • 6,651
  • 3
  • 36
  • 58

2 Answers2

1

So, The reason for Firebase not taking update in my existing project is another framework that has dependency on a lower of version of nanopb(1.30905.0).

I got the hint from paulb777's comment - "Examine Podfile.lock to see the dependency requirements. Not all pods allow their dependencies to update to latest." from https://github.com/firebase/firebase-ios-sdk/issues/4994

That is the issue in my case.

Natasha
  • 6,651
  • 3
  • 36
  • 58
0

Any type of files(Podfile.lock) or folders can be delete by below mentioned process:

  1. rm -rf Pods/ Podfile.lock (To delete Pods and Podfile.lock)

  2. rm -rf Podfile.lock (Delete only one file)

  3. sudo rm -rf some_dir (If permission denied)

  4. We can move file to trash folder, i. brew install trash (If not available) ii. trash -rf Podfile.lock

  5. We have ultimate option to delete a file. We can delete manually, Select file and move to bin.

enter image description here

Regarding Firebase installation :

There is a dependancy on Firebase installation on cocoapods(pods).

Firebase 8.2.0 can be installed on pod 1.10.1+. If we try to install Firebase 8.3.0 or above on pod 1.10.1, We will get an error "CocoaPods could not find compatible versions".

If latest pod is not available, Update with latest cocoapods.

'sudo gem install cocoapods --pre'

If available pod(version 1.11.2), We can install any Firebase versions (Example - 8.7.0) without any issue.

Podfile:

enter image description here

After Pod installation: enter image description here

Abdul Hoque Nuri
  • 1,105
  • 1
  • 9
  • 18
  • When I install on a freshly created project, it works as expected. However, when I am doing on my project, it is not working as expected. The cocoa pods version on my system is 1.11.2. – Natasha Sep 20 '21 at 13:57