gpt4 book ai didi

ios - 与 FlutterFire 和 iOS 上的原生 GeoFire 插件冲突

转载 作者:IT老高 更新时间:2023-10-28 12:46:25 27 4
gpt4 key购买 nike

当我尝试将 GeoFire 添加到我的 iOS Flutter 项目时出现错误,该项目包含 FlutterFire 数据库插件。这是错误的样子:

Resolving dependencies of `Podfile`
[!] Unable to satisfy the following requirements:

- `Firebase (~> 2.1)` required by `GeoFire (1.1.0)`

Specs satisfying the `Firebase (~> 2.1)` dependency were found, but they required a higher minimum deployment target.

我的 podspec 文件看起来像这样的 atm:

#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'geofire'
s.version = '0.0.1'
s.summary = 'A new flutter plugin project.'
s.description = <<-DESC
A new flutter plugin project.
DESC
s.homepage = 'http://example.com'
s.license = { :file => '../LICENSE' }
s.author = { 'Your Company' => 'email@example.com' }
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h'
s.dependency 'Flutter'
s.dependency 'GeoFire', '>= 1.1' # Adding GeoFire

s.ios.deployment_target = '8.0'
end

我还尝试按照此处的建议使用 git 页面将 Geofire 添加到我的 podspec 文件中:GeoFire giving problems with CocoaPods

s.dependency 'GeoFire', :git => 'https://github.com/firebase/geofire-objc.git'

是否有(简单的)解决方案?

最佳答案

几天前我遇到了同样的问题。

我想我通过执行以下步骤修复了它:

  1. 运行命令“pod repo update”(它将更新您的 repo 信息)
  2. 然后运行命令“pod update”(它将使用最新的 repo 信息更新您的 pod)

如果这能解决您的问题,请告诉我:)

关于ios - 与 FlutterFire 和 iOS 上的原生 GeoFire 插件冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46634757/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com