ios - GeoFire 给 CocoaPods 带来问题

标签 ios firebase cocoapods geofire

我正在尝试将 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/

相关文章:

objective-c - 由于保留或其他原因导致的泄漏? ( Objective-C )

ios - CoreData 未触发故障

swift - 您的规范源都不包含满足依赖关系的规范

ios - xamarin.forms webview.focused 事件在 Android 上引发,但在 iOS 上未引发

ios - iOS:将键/值添加到特定索引的多维数组

android - 使用 URL 从 Firebase 存储中删除文件

javascript - 数组有元素时长度为 0

firebase - flutter firebaseauth signout() 不起作用

ios - "No such module ' Alamofire '"Xcode 无法识别 Alamofire 框架

ios - gRPC-Core 编译错误 - Swift 4/Xcode 9 更新后的 Apple Mach-O 链接器错误