Cocoapods Firebase吊舱更新 [英] Cocoapods Firebase pods update

查看:233
本文介绍了Cocoapods Firebase吊舱更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早上好,我在更新Firebase/Analytics和Firebase/Core吊舱时遇到问题.

Good morning, i have a problem with updating my Firebase/Analytics and Firebase/Core pod.

我的Podfile:

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,我将得到以下输出

if i run pod install i get the following output

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.

pod outdated:

所以我运行pod update:

但是"Firebase/Analytics"仍在5.1.0版上 我哪里错了?我已经尝试过多次安装repo master了,还有gem

But 'Firebase/Analytics' remains on version 5.1.0 Where am i wrong? i have already try to install repo master several times and also gem

推荐答案

如消息所示,您应该先执行pod repo update,然后再执行pod update.希望这会有所帮助.

As the message says, you should do pod repo update first then do pod update after. Hope this helps.

这篇关于Cocoapods Firebase吊舱更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆