与iOS上的FlutterFire和原生GeoFire插件冲突 [英] Conflicts with FlutterFire and native GeoFire plugin on iOS
本文介绍了与iOS上的FlutterFire和原生GeoFire插件冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
$ b $ pre $
解决`Podfile`的依赖关系
[!]无法满足以下要求:
- `GeoFire(1.1.0)`所需的`Firebase(〜> 2.1)`
满足Firebase(〜> 2.1)依赖被发现,但他们需要更高的最低部署目标。
我的podspec文件看起来像这样:atm:
#
#要了解有关Podspec的更多信息,请参阅http://guides.cocoapods.org/syntax/podspec.html
#
Pod: :Spec.new do | s |
s.name ='geofire'
s.version ='0.0.1'
s.summary ='一个新的扑克插件项目'
s.description =< < -DESC
一个新的扑克插件项目。
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'#添加GeoFire
s.ios.deployment_target ='8.0'
结束
我也尝试使用git页面在我的podspec文件中添加Geofire,如下所示: GeoFire给CocoaPods带来问题
s .dependencyGeoFire,::git => 'https://github.com/firebase/geofire-objc.git'
有没有简单)的解决方案吗?
解决方案
我几天前面临同样的问题。
我认为我通过执行以下步骤来修复它:
- 运行命令'pod repo update'会更新您的回购信息)
- 然后运行命令'pod update'(它会使用最新的回购信息更新您的pod)
让我知道这是否解决了您的问题:)
I'm getting an error when I'm trying to add GeoFire to my iOS Flutter project which has the FlutterFire Database plugin included. This is what the error looks like:
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.
My podspec file looks like this 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
I also tried using the git page in to add Geofire in my podspec file as suggested here: GeoFire giving problems with CocoaPods
s.dependency 'GeoFire', :git => 'https://github.com/firebase/geofire-objc.git'
Is there a (simple) solution for this?
解决方案
I faced the same kind of issue few days ago.
I think I fixed it by doing the following steps:
- Run the command 'pod repo update' (it will update your repo information)
- Then run the command 'pod update' (it will update your pods using the latest repo information)
Let me know if this is solving your issue :)
这篇关于与iOS上的FlutterFire和原生GeoFire插件冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文