我正在尝试将 Geofire 添加到我使用 Google Firebase 作为后端的 iOS 项目。当我添加 Geofire pod 并运行 pod update
时,我在终端中收到此消息...
[!] Unable to satisfy the following requirements:
- `Firebase` required by `Podfile`
- `Firebase (~> 2.1)` required by `GeoFire (1.1.0)`
Specs satisfying the `Firebase, Firebase (~> 2.1)` dependency were found, but they required a higher minimum deployment target.
这是我的 Podfile 的样子...
# 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 'HopUp' do
pod 'Firebase'
pod 'FirebaseAuth'
pod 'Firebase/Core'
pod 'Firebase/Database'
pod 'Firebase/Storage'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'GeoFire', '>= 1.1'
end
关于为什么会发生这种情况有什么想法吗?
感谢所有意见!
最佳答案
其中一个解决方案是像这样将 git 源添加到您的 pod 文件中:
pod 'GeoFire', :git => 'https://github.com/firebase/geofire-objc.git'
另外,查看 this github issue如果您还有其他问题。这就是我让 GeoFire 与我的项目一起工作的方式。
关于ios - GeoFire 给 CocoaPods 带来问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37679576/