无效的 `Podfile` 文件:无效的 `RNFBDatabase.podspec` 文件:没有这样的文件或目录@ rb_sysopen - ../app/package.json - react native
Invalid `Podfile` file: Invalid `RNFBDatabase.podspec` file: No such file or directory @ rb_sysopen - ../app/package.json - react native
我在我的 React Native 项目中这样安装了 firebase-->
yarn add @react-native-firebase/database
然后当我尝试使用此命令根据文档安装 pods 时 -->
cd ios/ && pod install && cd ..
我收到以下错误:
> [!] Invalid `Podfile` file: [!] Invalid `RNFBDatabase.podspec` file:
> No such file or directory @ rb_sysopen - ../app/package.json.
我已经搞了 2 天了,很高兴我解决了这个问题。这是缺少的依赖项 @react-native-firebase/app
。 @react-native-firebase/database
需要安装 @react-native-firebase/app
。
我在我的 React Native 项目中这样安装了 firebase-->
yarn add @react-native-firebase/database
然后当我尝试使用此命令根据文档安装 pods 时 -->
cd ios/ && pod install && cd ..
我收到以下错误:
> [!] Invalid `Podfile` file: [!] Invalid `RNFBDatabase.podspec` file:
> No such file or directory @ rb_sysopen - ../app/package.json.
我已经搞了 2 天了,很高兴我解决了这个问题。这是缺少的依赖项 @react-native-firebase/app
。 @react-native-firebase/database
需要安装 @react-native-firebase/app
。