firebase - Cocoapods Firebase pod 更新
问题描述
早上好,我在更新 Firebase/Analytics 和 Firebase/Core pod 时遇到问题。
我的播客文件:
source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/CocoaPods/Specs'
platform :ios, '10.0'
target 'Unity-iPhone' do
pod 'Firebase/Analytics', '5.15.0'
pod 'Firebase/Core', '5.15.0'
pod 'Firebase/Messaging', '5.1.0'
pod 'GoogleAppMeasurement', '5.3.0'
pod 'Google-Mobile-Ads-SDK', '~> 7.0'
end
如果我运行,pod install
我会得到以下输出
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "Firebase/Analytics":
In Podfile:
Firebase/Analytics (= 5.15.0)
None of your spec sources contain a spec satisfying the dependency: `Firebase/Analytics (= 5.15.0)`.
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
但 'Firebase/Analytics' 仍保留在 5.1.0 版上我哪里错了?我已经尝试过多次安装 repo master 和 gem
解决方案
正如消息所说,您应该先做,pod repo update
然后再做pod update
。希望这可以帮助。
推荐阅读
- c# - C# 从 UserControl 更改主窗体的 UI
- angular - 如何配置 Wildfly 以重写 Angular 应用程序的 URL
- c# - 在 Web 服务中捕获无效的传入请求
- php - 如何在教义中生成二传手?
- python - 无论如何要在python中从数组本身中删除引号?
- php - 订单过滤 - PrestaShop API
- java - JAVA 中的元素顺序(导入 javax.xml.*)
- jenkins - 为数组中的字符串添加双引号
- python - Pandas ImportError:当我尝试读取 .csv 文件时无法导入名称“OrderedDict”
- python - Pandas:将平均值分配给一个类别