当我尝试将 GeoFire 添加到包含 FlutterFire 数据库插件的 iOS Flutter 项目时,出现错误。错误如下所示:
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 文件看起来像这样:
#
# 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 protected]' }
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 页面在我的 podspec 文件中添加 Geofire,如下所示:GeoFire 给 CocoaPods 带来问题
s.dependency 'GeoFire', :git => 'https://github.com/firebase/geofire-objc.git'
有一个(简单的)解决方案吗?
几天前我遇到了同样的问题。
我想我通过执行以下步骤修复了它:
- 运行命令“pod repo update”(它将更新您的仓库信息)
- 然后运行命令“pod update”(它将使用最新的存储库信息更新您的 pod)
让我知道这是否能解决您的问题:)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)