我正在使用iOS上的Firebase,我想添加GeoFire。我按照这里的说明操作:https://github.com/firebase/geofire-objc,但是在将pod 'GeoFire','>=1.1‘添加到我的pod文件并更新之后,我得到了这个错误
$ pod update
Update all pods
Updating local specs repositories
Analyzing dependencies
[!] 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.我的podfile看起来像这样
use_frameworks!
platform :ios, '8.1'
pod 'Firebase/Core'
pod 'Firebase/Storage'
pod 'Firebase/AdMob'
pod 'Firebase/Auth'
pod 'Firebase/Crash'
pod 'Firebase/Database'
pod 'Firebase/RemoteConfig'
pod 'GeoFire', '>=1.1'
target 'FriendlyChatSwift' do
end我不知道这是怎么回事。
发布于 2016-07-23 05:47:31
请按以下步骤顺序操作,因为其中一个步骤应该可以解决问题:
pod update
pod 'GeoFire',:git => 'https://github.com/firebase/geofire-objc.git‘
pod安装pod
以下是指向步骤7/8的屏幕截图的链接:https://cloud.githubusercontent.com/assets/1798166/16071528/6e625fd8-330e-11e6-97ca-655bea333fbb.png
最后,一定要在GitHub上查看项目的“问题”部分--这是一个很好的资源,将来你可能会在那里找到解决方案。
发布于 2016-05-28 04:14:02
您使用的是什么版本的cocoapods?他们最近刚刚发布了1.0。你可能想试一试。
此外,以下是最新的geofire podspec文件:
Pod::Spec.new do |s|
s.name = "GeoFire"
s.version = "1.1.2"
s.summary = "Realtime location queries with Firebase."
s.homepage = "https://github.com/firebase/geofire-objc"
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { "Firebase" => "support@firebase.com" }
s.source = { :git => "https://github.com/firebase/geofire-objc.git", :tag => 'v1.1.2' }
s.source_files = "GeoFire/**/*.{h,m}"
s.docset_url = "https://geofire-ios.firebaseapp.com/docs/"
s.ios.deployment_target = '7.0'
s.osx.deployment_target = '10.10'
s.ios.dependency 'Firebase', '~> 2.2'
s.osx.dependency 'FirebaseOSX', '~> 2.4'
s.framework = 'CoreLocation'
s.requires_arc = true
end尝试在您的podfile中拉入geofire 1.1.x。
https://stackoverflow.com/questions/37490001
复制相似问题