Firebase pod install - pod 'Firebase/Database' - 需要更高的最低部署目标
Firebase pod install - pod 'Firebase/Database' - Required a higher minimum deployment target
我正在尝试安装 Firebase/Database 就像 Firebase 文档 https://firebase.google.com/docs/ios/setup#available_pods 但是当我尝试时我遇到了问题。
[!] Unable to satisfy the following requirements:
Firebase/Database
Podfile
要求
找到了满足 Firebase/Database
依赖关系的规范,但它们需要更高的最低部署目标。
需要更高的最低部署目标,我该怎么做?
谢谢
Screenshot
我就是这样修复的。
第 1 步
安装常规 Firebase - pod 'Firebase', '>= 2.5.1'
第 2 步
更新 - pod update
*此时更新需要几分钟时间。你应该看到这样的东西。
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.
第 3 步
现在你应该有 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’
祝你好运!
在您的 Podfile
中,将项目文件夹中的行 pod 'Firebase'
更改为 pod Firebase/Core
和 运行 pod update
。
有了新的 Firebase,就不需要第一行了。
来自迁移指南:
按照以下步骤操作:
- pod repo 删除 master
- 广告连播设置
- pod 安装
我在下面遇到了同样的 problem.My 错误
[!] 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.
Targets->general->deployment target
Changed to 8.0
我的项目部署目标从 ios 6 开始,因为它是在较旧的 xcode version.For 中开发的 xcode 8
新更新,我制作了 deployment target from ios 8
它可以工作来自我。
修复后正常工作
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)
最新的 Firebase 将从 ios 8.
开始支持
或者您可以更新 Podfile
平台:ios,'9.0'
运行 'pod update'
那我
在我的例子中,我有一个类似的错误,运行 来自 jenkins。当我删除有问题的工作区并重新运行时,一切都很好。
你可以尝试删除Podfile.lock
我先是 运行 pod repo update
然后 运行 pod install
才开始工作。
我正在尝试安装 Firebase/Database 就像 Firebase 文档 https://firebase.google.com/docs/ios/setup#available_pods 但是当我尝试时我遇到了问题。
[!] Unable to satisfy the following requirements:
要求Firebase/Database
Podfile
找到了满足
Firebase/Database
依赖关系的规范,但它们需要更高的最低部署目标。
需要更高的最低部署目标,我该怎么做?
谢谢
Screenshot
我就是这样修复的。
第 1 步
安装常规 Firebase - pod 'Firebase', '>= 2.5.1'
第 2 步
更新 - pod update
*此时更新需要几分钟时间。你应该看到这样的东西。
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.
第 3 步
现在你应该有 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’
祝你好运!
在您的 Podfile
中,将项目文件夹中的行 pod 'Firebase'
更改为 pod Firebase/Core
和 运行 pod update
。
有了新的 Firebase,就不需要第一行了。
来自迁移指南:
按照以下步骤操作:
- pod repo 删除 master
- 广告连播设置
- pod 安装
我在下面遇到了同样的 problem.My 错误
[!] 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.
Targets->general->deployment target
Changed to 8.0
我的项目部署目标从 ios 6 开始,因为它是在较旧的 xcode version.For 中开发的 xcode 8
新更新,我制作了 deployment target from ios 8
它可以工作来自我。
修复后正常工作
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)
最新的 Firebase 将从 ios 8.
开始支持或者您可以更新 Podfile
平台:ios,'9.0'
运行 'pod update'
那我
在我的例子中,我有一个类似的错误,运行 来自 jenkins。当我删除有问题的工作区并重新运行时,一切都很好。
你可以尝试删除Podfile.lock
我先是 运行 pod repo update
然后 运行 pod install
才开始工作。