-1

I realized I need to update Firebase version to latest 4.x from 3.11. I updated the pod file by adding " pod 'Firebase','~> 4.00'" But it is not working.

      # Pods for Firebase
      pod 'Firebase','~> 4.00'

How can I upgrade it? Also is there any migration tool for Firebase 4 in Swift? Many thanks!

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Alf Bae
  • 546
  • 6
  • 10

3 Answers3

2

You should be able to do it by running pod update in terminal.

If your Pod update fails

  1. Install cococoapods deintegrate and clean by running the following $ sudo gem install cocoapods-deintegrate and $ sudo gem install cocoapods-clean
  2. Run pod deintegrate
  3. Run pod clean
  4. And then check your podfile has the latest Firebase pod and run pod install

This method will remove all of your pods, clean them and reinstall them after running pod install.

Super_Simon
  • 1,250
  • 8
  • 25
1

Check this one, its working fine

In your pod, remove a pod version from it.

Link: https://cocoapods.org/pods/Firebase

pod 'Firebase'

run pod update in your terminal

sahib
  • 85
  • 1
  • 13
Khawar Islam
  • 2,556
  • 2
  • 34
  • 56
1

Make sure that you have all of the latest pods. run

pod repo update

then

pod update Firebase
valosip
  • 3,167
  • 1
  • 14
  • 26