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:
Node verison 14.17.6
npm version 6.14.15
CocoaPods 1.11.2
platform ios '11.0'
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.
Related
[!] CocoaPods could not find compatible versions for pod "Flipper-Glog":
In Podfile:
Flipper-Glog (= 0.5.0.4)
None of your spec sources contain a spec satisfying the dependency: Flipper-Glog (= 0.5.0.4).
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.
Disable everything related to flipper in Podfile and then cd ios && pod install
# use_flipper!()
Worked after using this command:
pod install --repo-update
If you are building from a fresh Reach Native Project, there should be no need to edit any files in the project to get it to run.
Try the solutions here:
React native ios - error when running pod install (installing Flipper-Glog)
I encountered this problem after deleting all my iOS caches and setting some Virtual Env. Opening Xcode and simulator once then try "pod install" should work.
Remove or comment this line from your ios/Podfile in react native.
# use_flipper!()
For M1 chip Mac, run
"arch -x86_64 pod install"
solved it.
I have a react-native project with these dependencies (all are the latest available):
"#react-native-firebase/analytics": "^14.5.1",
"#react-native-firebase/app": "^14.5.1",
"#react-native-firebase/config": "^0.1.5",
"#react-native-firebase/perf": "^14.5.1",
But when I go to pod install, I get:
[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":
In Podfile:
RNFBApp (from `../node_modules/#react-native-firebase/app`) was resolved to 14.5.1, which depends on
Firebase/CoreOnly (= 8.12.1)
RNFBConfig (from `../node_modules/#react-native-firebase/config`) was resolved to 0.1.5, which depends on
Firebase/RemoteConfig (~> 6.5.0) was resolved to 6.5.0, which depends on
Firebase/CoreOnly (= 6.5.0)
I do not understand why config has a different version to all the others and how the latest versions of a project are conflicting.
I have tried the following to fix this:
rm -rf ios/Pods ios/Podfile.lock
pod repo remove trunk
pod install
pod update
pod install --repo-update
My ios/Podfile does not contain explicit pods for Firebase.
Usually these commands tend to fix problems like this. But not this time. Thanks for any suggestions.
react-native-firebase maintainer here!
The 'config' package was wrapping the firebase "Remote Config" SDK packages, so that name was not used in the final release of react-native-firebase - we used "remote-config" in the end, but the alpha releases with the wrong name were still up on npmjs.com.
I just deprecated all versions of that package on npmjs.com so users should get a warning if they try to install it - no one should use that package. If you use the 'remote-config' one, you'll be all set I think
The problem is that #react-native-firebase/config appears unrelated to the #react-native-firebase project, hence the different latest version and pod conflicts. I had to use #react-native-firebase/remote-config instead, as found in the documentation https://github.com/invertase/react-native-firebase
The problem is that react native update a new architecture
Open the file Podfile and add use_frameworks! :linkage => :static inside your targets
Disable the :flipper_configuration line
Put $RNFirebaseAsStaticFramework = true
at the top of podfile
Then run
pod install --repo-update
For Mac M1
arch -x86_64 pod install --repo-update
Hope this useful to someone
I solved the issue by deleting the ./ios/Podfile.lock and run again pod install --repo-update command.
When I start to run flutter ios the project with "flutter run" it gives
`Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies.
To update the CocoaPods specs, run:
pod repo update
Error running pod install
`
Then I run "pod install" inside ios/ It gives
[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":
In Podfile:
firebase_core (from .symlinks/plugins/firebase_core/ios) was resolved to 1.12.0, which depends on
Firebase/CoreOnly (= 8.11.0)
None of your spec sources contain a spec satisfying the dependency: Firebase/CoreOnly (= 8.11.0).
You have either:
out-of-date source repos which you can update with pod repo update or with pod install --repo-update.
Then
I tried pod install --repo-update
It gives
[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":
In Podfile:
firebase_core (from .symlinks/plugins/firebase_core/ios) was resolved to 1.12.0, which depends on
Firebase/CoreOnly (= 8.11.0)
None of your spec sources contain a spec satisfying the dependency: Firebase/CoreOnly (= 8.11.0).
You have either:
mistyped the name or version.
not added the source repo that hosts the Podspec to your Podfile.
Do you want to help me about this problem?
You should go to iOS folder and delete:
pods folder and podfile.lock
after that, you should add below lines to yaml file
firebase_core: ^1.12.0 "[last version in dev dart]"
firebase_analytics: ^8.3.4 "[last version in dev dart]"
firebase_crashlytics: ^2.3.0. "[last version in dev dart]"
firebase_messaging: ^11.1.0. "[last version in dev dart]"
run your app to install and update pod file
This is solved by deleting
Podfile.lock
pods folder
updating these packages
firebase_core: ^1.12.0
firebase_analytics: ^8.3.4
firebase_crashlytics: ^2.3.0.
firebase_messaging: ^11.1.0.
then running first
pod repo remove trunk
and finally
pod install
Command "pod install" can't be executed when run on ios flutter app folder.
Error as the following:
Analyzing dependencies
firebase_core: Using Firebase SDK version '10.0.6' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '10.0.6' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "Firebase/Messaging":
In Podfile:
firebase_messaging (from .symlinks/plugins/firebase_messaging/ios) was resolved to 10.0.6, which depends on
Firebase/Messaging (= 10.0.6)
None of your spec sources contain a spec satisfying the dependency: Firebase/Messaging (= 10.0.6).
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.
We have this package on pubspec.yaml
firebase_core: ^1.6.0
firebase_messaging: ^10.0.6
on podfile:
platform :ios, '10.0'
We use pod version:
1.11.0.rc.1
macOS Big Sur version:
11.2.1
If we delete this packages from pubspec.yaml, pod install work fine.
We tried many ways to no avail!
pod install --repo-update this donst help;
also cocoa pods installation in M1 dosnt resolve this problem;
Always when you add a new dependency on IOS you should do:
cd ios/
rm -rf Pods/
rm -rf Podfile.lock
cd ..
flutter clean
flutter pub get
cd ios
pod install
pod install --repo-update ( if needed)
This always help me to fix dependencies issues on IOS
Problem was resolved using this command
flutter pub cache repair
Thank you for all!
If anyone showed here, I fixed this by running the pod update command inside the iOS directory.
I'm trying to integrate Firebase-Analytics in my Unity 2013.3.1 project.
After following the integration guide, I've tried to build the project.
However, Unity fails to build. The reason seems to be cocoapods.
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "Firebase/Analytics":
In Podfile:
Firebase/Analytics (= 4.8.1)
None of your spec sources contain a spec satisfying the dependency: `Firebase/Analytics (= 4.8.1)`.
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.
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
I've tried to reinstall cocoapods and re-run pod setup, and also deleting the repo and re-setupping using rm -rf ~/.cocoapods/repos/master, but I had no success.
Here's the generated Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
target 'Unity-iPhone' do
pod 'Firebase/Analytics', '4.8.1'
pod 'Firebase/Core', '4.8.1'
end
One last thing I've tried was to remove the specific version tags into the Podfile (I've removed the '4.8.1'). This fixed the pod install, however I couldn't find a way to have a successfull build from unity, since the Podfile is auto-generated.
Here's the pod install output after removing the version tag:
Analyzing dependencies
Downloading dependencies
Installing Firebase (4.9.0)
Installing FirebaseAnalytics (4.0.9)
Installing FirebaseCore (4.0.15)
Installing FirebaseInstanceID (2.0.9)
Installing GoogleToolboxForMac (2.1.3)
Installing nanopb (0.3.8)
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use `Unity-iPhone.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There are 2 dependencies from the Podfile and 6 total pods installed.
It looks like FirebaseAnalytics is currently at version 4.0.9, not 4.8.1.
Did anyone have similar issues?
Update to the 4.4.2 release.
Or to workaround with 4.4.1:
Manually edited each of Dependencies.xml files in Assets/Firebase/Editor to change the version from 4.8.1 to 4.8.2. Example:
<iosPods>
<!-- Mike changed this from 4.8.1 to 4.8.2 -->
<iosPod name="Firebase/Analytics" version="4.8.2" minTargetSdk="7.0">
</iosPod>
</iosPods>
Reference and additional detail here.
The version of FirebaseAnalytics used by Firebase 4.9 is 4.0.9, not 4.8.1. See the podspec for reference.
Another possible issue for failing is that your dependency (iOS 7) is too old and it's not supported by Xcode 9, nor by the latest version of Firebase.
Replace
platform :ios, '7.0'
with
platform :ios, '8.0'