简体   繁体   English

在 xcode 11.3 中安装 Firebase/Messaging pod 时显示错误?

[英]Showing error on install Firebase/Messaging pod in xcode 11.3?

enter image description here在此处输入图像描述

pod 'Firebase'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/RemoteConfig'
pod 'Firebase/Storage'

I am trying to install firebase/Messaging, with FirebaseAnalytics but it gives error shown in below.我正在尝试使用 FirebaseAnalytics 安装 firebase/Messaging,但它给出了如下所示的错误。 please suggest the solution.请提出解决方案。

!] Unable to find a specification for FirebaseAnalyticsInterop (~> 1.5) depended upon by FirebaseMessaging !] 无法找到 FirebaseMessaging 所依赖的FirebaseMessaging FirebaseAnalyticsInterop (~> 1.5)的规范

You have either: * out-of-date source repos which you can update with pod repo update or with pod install --repo-update .您有: * 过时的源存储库,您可以使用pod repo update或使用pod install --repo-update * mistyped the name or version. * 输入错误的名称或版本。 * not added the source repo that hosts the Podspec to your Podfile. * 未将托管 Podspec 的源代码库添加到您的 Podfile。

I have been able to install the dependencies with below pod file without any issues.我已经能够使用下面的pod文件安装依赖项而没有任何问题。

use_frameworks!
platform :ios, '9.0'

install! 'cocoapods'

target 'PodTest' do
use_frameworks!
pod 'Firebase'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/RemoteConfig'
pod 'Firebase/Storage'
end

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM