【问题标题】:Cocoapods Firebase pods updateCocoapods Firebase pod 更新
【发布时间】:2019-07-14 06:45:32
【问题描述】:

早上好,我在更新 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.

pod outdated:

所以我运行pod update

但“Firebase/Analytics”仍保留在 5.1.0 版上 我哪里错了?我已经尝试过多次安装 repo master 和 gem

【问题讨论】:

    标签: firebase unity3d cocoapods podspec


    【解决方案1】:

    正如消息所说,您应该先执行pod repo update,然后执行pod update。希望这会有所帮助。

    【讨论】:

    • 非常感谢您的快速回复,这是我使用 pod repo update dropbox.com/s/uyqlebaw3qxp566/pod_update.png?dl=0 时遇到的错误
    • @YvesHohler 您可以尝试删除 Firebase/Analytics,然后将 Firebase/Core 替换为 pod 'FirebaseCore'、'5.2.0'。它应该工作
    • 好的,项目再次编译,非常感谢,我的 podfile 现在看起来像这样: 'code' source 'github.com/CocoaPods/Specs.git' source 'github.com/CocoaPods/Specs' platform :ios, '10.0'目标 'Unity-iPhone' do pod 'FirebaseCore'、'5.2.0' pod 'Firebase/Messaging'、'5.16.0' pod 'Firebase/Analytics'、'5.16.0' pod 'GoogleAppMeasurement'、'5.5.0 ' pod 'Google-Mobile-Ads-SDK', '~> 7.0' end 'code' 非常感谢!
    猜你喜欢
    • 1970-01-01
    • 2021-01-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多