我尝试在React Native应用程序中安装Firebase,但是运行pod install --repo-update时,我总是收到错误消息。
这是错误:
/usr/share/doc
我搜索了类似的问题解决方案,并且我已经尝试用-FirebaseCore(〜> 6.6)替换Firebase / Core,但这没有帮助。
这是我的podfile:
[!] CocoaPods could not find compatible versions for pod "Firebase/Core":
In snapshot (Podfile.lock):
Firebase/Core (= 6.22.0)
In Podfile:
RNFBApp (from `../node_modules/@react-native-firebase/app`) was resolved to 6.7.1, which depends on
Firebase/Core (~> 6.13.0)
You have either:
* changed the constraints of dependency `Firebase/Core` inside your development pod `RNFBApp`.
You should run `pod update Firebase/Core` to apply changes you've made.
感谢您的帮助! 蒂姆
答案 0 :(得分:11)
运行pod update Firebase/Core
,然后对每个有问题的依赖项重复。
这里的问题是Firebase的iOS库的先前安装版本与本机模块所需的版本不同。 pod install
命令从不更新锁定文件中列出的版本的Pod。
答案 1 :(得分:0)
pod install --repo-update
使用这个命令我解决了我的问题