ios Firebase pod install - pod 'Firebase/Database' - 需要更高的最低部署目标

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/37365227/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 09:08:25  来源:igfitidea点击:

Firebase pod install - pod 'Firebase/Database' - Required a higher minimum deployment target

iosfirebasecocoapodsfirebase-realtime-database

提问by Giovanni C?co

I am trying to install Firebase/Database like Firebase doc https://firebase.google.com/docs/ios/setup#available_podsbut when I tried I got issue.

我正在尝试像 Firebase doc https://firebase.google.com/docs/ios/setup#available_pods一样安装 Firebase/Database,但是当我尝试时我遇到了问题。

[!] Unable to satisfy the following requirements:
  • Firebase/Databaserequired by Podfile

    Specs satisfying the Firebase/Databasedependency were found, but they required a higher minimum deployment target.

  • Firebase/Database要求 Podfile

    Firebase/Database找到了满足依赖性的规范,但它们需要更高的最低部署目标。

Required a higher minimum deployment target, how can I do this?

需要更高的最低部署目标,我该怎么做?

Thanks

谢谢

Screenshot

截屏

回答by brkr

This is how I fixed it.

这就是我修复它的方式。

Step 1

第1步

Install Regular Firebase - pod 'Firebase', '>= 2.5.1'

安装常规 Firebase - pod 'Firebase', '>= 2.5.1'

Step 2

第2步

Update - pod update

更新 - pod update

*At this point it will take a good couple minutes to update. You should see something like this.

*此时将需要几分钟的时间来更新。你应该看到这样的东西。

Update all pods
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Installing Firebase 3.2.0 (was 3.2.0)
Using FirebaseAnalytics (3.2.0)
Installing FirebaseAuth (3.0.2)
Using FirebaseDatabase (3.0.1)
Using FirebaseInstanceID (1.0.6)
Using GoogleInterchangeUtilities (1.2.1)
Installing GoogleNetworkingUtilities (1.2.1)
Using GoogleSymbolUtilities (1.1.1)
Using GoogleUtilities (1.3.1)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 4 dependencies from the Podfile and 10
total pods installed.

Step 3

第 3 步

Now you should have Firebase 3. So you can add frameworks like such in your pod file then pod update

现在你应该有 Firebase 3。所以你可以在你的 pod 文件中添加这样的框架然后 pod update

# Uncomment this line to define a global platform for your project
 platform :ios, '8.0'
# Uncomment this line if you're using Swift
 use_frameworks!

target 'xMarket' do

end

target 'xMarketTests' do

end

target 'xMarketUITests' do

end

pod 'Firebase', '>= 2.5.1'
pod ‘Firebase/Core'
pod ‘Firebase/Database'
pod ‘Firebase/Auth'

Good luck!

祝你好运!

回答by Idan

In your Podfile, change the line pod 'Firebase'to pod Firebase/Coreand run pod updatein the project folder.

在您的 中Podfile,将行更改pod 'Firebase'pod Firebase/Corepod update在项目文件夹中运行。

With the new Firebase, there is no need for the first line.

有了新的 Firebase,就不需要第一行了。

From the migration guide:

从迁移指南:

migration

移民

Reference: Firebase.google migration guide

参考: Firebase.google 迁移指南

回答by kentrh

I got it working by first running pod repo updateand then running pod installagain.

我通过先运行pod repo update然后pod install再次运行来让它工作。

回答by Rincha

Follow this steps:

请按照以下步骤操作:

  1. pod repo remove master
  2. pod setup
  3. pod install
  1. pod repo 移除 master
  2. 吊舱设置
  3. 吊舱安装

回答by Sheereen S

I had the same problem.My error below

我有同样的问题。我的错误如下

[!] Unable to satisfy the following requirements:

- `Firebase/AdMob` required by `Podfile`

Specs satisfying the `Firebase/AdMob` dependency were found, but they required a higher minimum deployment target.

enter image description hereTargets->general->deployment target Changed to 8.0enter image description here

在此处输入图片说明Targets->general->deployment target Changed to 8.0在此处输入图片说明

My project deployment target starts from ios 6 Since it developed in older xcode version.For new updation in xcode 8I made the deployment target from ios 8It works from me.

我的项目部署目标从iOS 6中开始由于老年人的Xcode version.For新的更新用开发xcode 8我做了deployment target from ios 8它从我的作品。

After fix its working

修复其工作后

Installing Firebase (4.0.2) Installing FirebaseAnalytics (4.0.1) Installing FirebaseCore (4.0.2) Installing FirebaseInstanceID (2.0.0) Installing Google-Mobile-Ads-SDK (7.20.0) Installing GoogleToolboxForMac (2.1.1)

Installing Firebase (4.0.2) Installing FirebaseAnalytics (4.0.1) Installing FirebaseCore (4.0.2) Installing FirebaseInstanceID (2.0.0) Installing Google-Mobile-Ads-SDK (7.20.0) Installing GoogleToolboxForMac (2.1.1)

The latest Firebase will support from ios 8.

最新的 Firebase 将支持 ios 8。

回答by Sanjeev

or you can update the Podfile

或者你可以更新 Podfile

platform :ios, '9.0'

平台:ios,'9.0'

run 'pod update'

运行“豆荚更新”

that wo

那我

回答by AnneTheAgile

In my case, I had a similar error, running from jenkins. When I deleted the offending workspace and reran, all was well.

就我而言,我有一个类似的错误,从 jenkins 运行。当我删除有问题的工作区并重新运行时,一切都很好。

回答by Qadir Hussain

you can try to delete Podfile.lock

你可以尝试删除 Podfile.lock