Cocoapods: Unable to find a specification for `Firebase/Core`

前端 未结 8 1999
时光说笑
时光说笑 2020-12-25 12:36

I have this in podfile:

pod \'Firebase/Core\'
pod \'Firebase/Messaging\'

but getting this error:

[!] Unable to find

8条回答
  •  时光取名叫无心
    2020-12-25 12:59

    Check if your podfile looks like this and then execute pod install:

    platform :ios, '10.0'
    use_frameworks!
    
    target '' do
    
      # Firebase
      pod 'Firebase'
      pod 'Firebase/Core'
      pod 'Firebase/Messaging'
    
    end
    
    post_install do |installer|
      installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
          config.build_settings['SWIFT_VERSION'] = '3.0'
        end
      end
    end
    

提交回复
热议问题