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.
Related
I ran into this error while trying to run pod install. Pls what can I do to fix this???
Kindly note that I have tried deleting podfile.lock, flutter clean, pod update, pod repo update, delete ios/pods file and .symlinks folder. None of this fix my issue. Pls help
Analyzing dependencies
firebase_analytics: Using Firebase SDK version '9.5.0' defined in 'firebase_core'
firebase_auth: Using Firebase SDK version '9.5.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '9.5.0' defined in 'firebase_core'
firebase_database: Using Firebase SDK version '9.5.0' defined in 'firebase_core'
firebase_dynamic_links: Using Firebase SDK version '9.5.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '9.5.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "GoogleAppMeasurement":
In snapshot (Podfile.lock):
GoogleAppMeasurement (= 9.5.0)
In Podfile:
google_mobile_ads (from `.symlinks/plugins/google_mobile_ads/ios`) was resolved to 2.1.0, which depends on
Google-Mobile-Ads-SDK (= 8.13.0) was resolved to 8.13.0, which depends on
GoogleAppMeasurement (< 9.0, >= 7.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 `GoogleAppMeasurement` inside your development pod `google_mobile_ads`.
You should run `pod update GoogleAppMeasurement` to apply changes you've made.
The solution that works for me is;
I change google_mobile_ads: 1.1.0 from pubspec.yaml to google_mobile_ads: ^2.1.0
Run flutter pub get
delete podfile.lock and .symlinks folder inside ios folder.
Run pod install, flutter clean and then flutter run.
It didn't run at first, I tried pod install --repo-update and flutter run again. Boom my build is successful
[!] 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
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.