ios - react native Firebase

标签 ios react-native cocoapods react-native-firebase

我有一个特殊的问题,我找到了很多解决这个错误的方法,但没有一个有效。

[!] CocoaPods could not find compatible versions for pod "RNFBApp":
In Podfile:
RNFBApp (from `../node_modules/@react-native-firebase/app`)

Specs satisfying the `RNFBApp (from `../node_modules/@react-native-firebase/app`)` dependency were found, but they required a higher minimum deployment target.

我试过了

 npm uninstall @react-native-firebase/app
 npm install @react-native-firebase/app
 cd ios/
 pod install 

没用。

我尝试删除 Podfile.lock 然后运行

 pod install --repo-update

同样的错误。然后我尝试将 iOS 部署目标更改为最高 14.4,并将我的项目部署目标更改为 14.4。

还是失败了。是什么原因?请提供任何帮助。

最佳答案

已找到依赖项,但它们需要更高的最低部署目标。

ios/Podfile 中你应该有这样一行 -> platform :ios, '9.0'

将其更改为 platform :ios, '10.0'platform :ios, '11.0'

重新安装pods并重建项目并再次检查

关于ios - react native Firebase,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66386324/

相关文章:

react-native - React Native Web - 控制 View 生成的 html 标签?

android - 为 Flutter/React-Native/Android-Native 应用程序生成 SHA-1

ruby - 安装 CocoaPods 时遇到问题

objective-c - 如何使用 NSMutableArray 填充 rootviewcontroller tableview

iOS 9 Swift UIView 没有成员

firebase - Firebase 的哪些部分实际上可以与 React-Native 一起使用,哪些部分不能?

ios - 将 64 位支持扩展到现有的 iOS 应用程序

ios - GooglePlaces API 使我的应用文件变大了。我能做些什么吗?

ios - 尝试在 View 不在窗口层次结构中的 UITabBarController 上显示 UIAlertController

ios - 从数组中动态添加 UIImageView