I'm new to React-Native and developing a project. Previously, it was working fine but when I installed Push Notification (rnfirebase for messaging) related dependencies, I'm getting these errors and I also tried all possible solutions from other questions too but no success.
Here is the complete errors which I'm getting while pod installation.
[!] CocoaPods could not find compatible versions for pod "Firebase/Analytics": In snapshot (Podfile.lock): Firebase/Analytics (= 6.13.0) In Podfile: Firebase/AnalyticsRNFBMessaging (from `../node_modules/@react-native-firebase/messaging`) was resolved to 7.1.5, which depends on Firebase/Analytics (~> 6.25.0)You have either: * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`. * changed the constraints of dependency `Firebase/Analytics` inside your development pod `RNFBMessaging`. You should run `pod update Firebase/Analytics` to apply changes you've made.
I tried the following workaround to resolve this issue.
1. pod install --repo-update2. pod repo remove master pod setup pod install3. Delete podfile.lock pod install
But none solution worked for me. Can anyone please help me to resolve this issue? I will really appreciate it.