【发布时间】:2021-04-01 23:22:47
【问题描述】:
我正在开发 react-native 应用程序。
我按照 firebase 说明将我的 iOS 应用添加到我的 firebase 项目中。
在我的 Podfile 中,我有:
pod 'Firebase/Crashlytics'
pod 'Firebase/Analytics'
当我运行 pod install 时,我不断收到错误消息“CocoaPods 找不到 pod “Firebase/Crashlytics”的兼容版本。
Xcode 版本 11.7,目标 iOS10.1
为什么会出现该错误以及如何消除它?
(我尝试运行pod update 'Firebase',我得到:
[!]
FirebasePod 未安装,无法更新)
【问题讨论】:
-
运行
pod update Firebase以更新所有 Firebase pod。 -
我更新了我的问题,我实际上尝试过,带和不带引号,同样的错误
The 'Firebase' Pod is not installed and cannot be update。还尝试添加pod 'Firebase/Core',也没有运气。 -
确保您的项目的最低部署目标至少是 iOS 9(请参阅 Firebase/Crashlytics release notes)如果没问题,那么首先尝试通过运行
pod repo update来更新 cocoapods 规范 repo,然后pod install. -
好点!我检查了我的 Podfile,那里是 ios9.0。我以为 xcode 目标值会自动应用于 Podfile,但似乎不是...
-
@gcharita 你能回答一下吗?这解决了我的问题。如果可能的话,如果您能说一下 Podfile 中的平台版本与 xcode 目标版本无关,那就太好了。
标签: ios xcode firebase cocoapods crashlytics