Firebase CocoaPods Installation Not Working

后端 未结 9 2096
再見小時候
再見小時候 2020-12-08 16:09

I\'m trying to install Firebase via CocoaPods for my Objective-C iOS Application. My Podfile is as follows:

target \'RandomName\' do

pod \'Firebase/Core\'
po         


        
9条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-08 16:24

    I am having the same problem. Check what version of Firebase is installed when you use pod 'Firebase'. For me it installs 2.4.3 which is an old version. The docs say that the pod should install 3.2. using that pod. It explains why the other pods don't work as they are part of Firebase 3. Pod update doesn't update Firebase to the latest version either. Even forcing a version doesn't work. It can't seem to find the new Firebase versions even though they are in the same podspec.

    Here is how I solved it:

    • make sure you have the latest version of git installed
    • make sure you have cocoapods >= 1.0.0 installed
    • delete your pods repo (run pod repo remove master) and use pod setup to make a new one
    • use the following in your pod file

      pod 'Firebase/Auth'

      pod 'Firebase/Database'

      pod 'Firebase/Core'

    (use whatever you want, just don't use 'Firebase')

    • pod install
    • everything should install properly

提交回复
热议问题