firebase - Cocoapods Firebase pod 更新

标签 firebase unity3d cocoapods podspec

早上好,我在更新 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 已过时: with <code>pod outdated</code>

所以我运行 pod update: so i run <code>pod update</code>

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

最佳答案

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

关于firebase - Cocoapods Firebase pod 更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54788691/

相关文章:

ios - 如何知道 CocoaPods 是否安装?进出MAC?

git - CocoaPods/Specs.git 的权限被拒绝

firebase 模拟器数据未保存并从某些缓存中检索

unity3d - 如何将电脑桌面分享到HoloLens2?

ios - 不兼容的库版本 : XXX requires version 2. 0.0 或更高版本,但 Runes 提供版本 1.0.0

c# - unity 3D 360转 spaceship

c# - unity slider 控制动画

javascript - 从 firebase 快照订阅后显示数据

ios - 确保在 Info.plist 新 GoogleSignIn IOS 版本中设置 GIDClientID

ios - 具有顺序和限制的 Firestore 复合查询