继续安装 Firebase 2.5.1 而不是 Cocoapods 安装的最新版本
Keeps installing Firebase 2.5.1 instead of the latest version with Cocoapods installation
基本上我是按照firebase.google.com网站上的说明来设置的。一切都设置好了,直到我尝试在 App Delegate 中使用 FIRApp.Configure() 。收到错误。重新安装 Cocoapods 以了解版本是 2.5.1,我认为这不是最新版本。那么如何获得最新版本是我的问题?
注意:使用 Swift,pod 搜索仅显示 2.5.1 为最新。
Pod 文件:
# Uncomment this line to define a global platform for your project
# platform :ios, '8.0'
target 'OptionMeFood' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for OptionMeFood
pod 'Firebase'
end
只需将其放入您的 Podfile 中,不带版本号,然后它应该会加载最新版本 (3.2):
pod 'Firebase'
看这里:https://firebase.google.com/docs/ios/setup#add_the_sdk
This will add the latest version of the Firebase pod, which include the /Core subspec. This provides Firebase Analytics. A list of currently available pods and subspecs is provided below. These are linked in feature specific setup guides as well.
基本上我是按照firebase.google.com网站上的说明来设置的。一切都设置好了,直到我尝试在 App Delegate 中使用 FIRApp.Configure() 。收到错误。重新安装 Cocoapods 以了解版本是 2.5.1,我认为这不是最新版本。那么如何获得最新版本是我的问题?
注意:使用 Swift,pod 搜索仅显示 2.5.1 为最新。
Pod 文件:
# Uncomment this line to define a global platform for your project
# platform :ios, '8.0'
target 'OptionMeFood' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for OptionMeFood
pod 'Firebase'
end
只需将其放入您的 Podfile 中,不带版本号,然后它应该会加载最新版本 (3.2):
pod 'Firebase'
看这里:https://firebase.google.com/docs/ios/setup#add_the_sdk
This will add the latest version of the Firebase pod, which include the /Core subspec. This provides Firebase Analytics. A list of currently available pods and subspecs is provided below. These are linked in feature specific setup guides as well.