iosfirebasereact-nativefirebase-admob

React native firebase/admob iOS pod install problems


i'm trying to install @react-native-firebase/admob with the following command:

npm install @react-native-firebase/admob

After that when i'm going in to ios folder on the project and using :

  • pod repo update
  • pod install

i'm getting the following error:

[!] CocoaPods could not find compatible versions for pod "Firebase/AdMob": In Podfile: RNFBAdMob (from ../node_modules/@react-native-firebase/admob) was resolved to 11.5.0, which depends on Firebase/AdMob (= 8.8.0)

None of your spec sources contain a spec satisfying the dependency: Firebase/AdMob (= 8.8.0).

You have either:  * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.  *

mistyped the name or version. * not added the source repo that hosts the Podspec to your Podfile.

Can somewone help me? i'm using:


Solution

  • It is quite difficult to find a admob package that works with React native, but there are some ways. This page can help you, try the instructions mentioned in the answers and make sure you install the correct packages.