Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

None of your spec sources contain a spec satisfying the dependencies: Firebase (~> 6.33.0), Firebase (= 6.33.0, ~> 6.33.0)

I am implementing some of the firebase SDKs into my pods, but I am having an issue with versioning them. I want to set Firebase 6.33. I did check the pod spec of this version and updated my pods according to that.

pod 'Firebase', '~> 6.33.0'
pod 'FirebaseCore', '~> 6.10.3'
pod 'FirebasePerformance', '~> 3.3.0'
pod 'FirebaseRemoteConfig', '~> 4.9.0'
pod 'FirebaseAnalytics', '~> 6.8.3'
pod 'FirebaseCrashlytics', '~> 4.6.1'

When I use the codes above, it gives me this error on jenkins:

None of your spec sources contain a spec satisfying the dependencies: Firebase (~> 6.33.0), Firebase (= 6.33.0, ~> 6.33.0).

I did pod deintegrate first and pod install to do a clean installation. It doesn't give the error on my MacBook but on jenkins.

podspec.json: https://github.com/CocoaPods/Specs/blob/master/Specs/0/3/5/Firebase/6.33.0/Firebase.podspec.json

like image 734
jorjj Avatar asked Sep 23 '20 23:09

jorjj


4 Answers

for Apple M1 users 👇

Inside your ios Folder follow these commands in terminal

sudo arch -x86_64 gem install ffi

arch -x86_64 pod install

If not work try this

arch -x86_64 pod install --repo-update

for Apple Intel users 👇

pod install --repo-update
like image 175
Amine LAHRIM Avatar answered Oct 25 '22 19:10

Amine LAHRIM


pod install --repo-update

to update to recent published CocoaPods pods.

like image 35
Paul Beusterien Avatar answered Oct 25 '22 21:10

Paul Beusterien


For who is here with a Mac M1, trying to run pod install --repo-update in the VSCode terminal without success, the solution I found was:

  • Find the native Terminal on Applications
  • Make sure it is running with Rosetta (right click on Terminal > Obtain Information > Check Open With Rosetta)
  • Open the terminal
  • cd path_to_your_ios_folder and run pod install --repo-update. That should work!

I am using:

Pod: 1.11.0
firebase_core: ^1.6.0
firebase_crashlytics: ^2.2.1
firebase_analytics: ^8.3.1
firebase_messaging: ^10.0.6
flutter: 2.2.3
like image 8
Danilo Rêgo Avatar answered Oct 25 '22 19:10

Danilo Rêgo


This did it for me

rm -rf Pods
rm -rf Podfile.lock
rm -rf ~/.pub-cache/hosted/pub.dartlang.org
pod cache clean --all
flutter clean
flutter pub get
pod repo update
pod install
like image 1
Ibrahim Yildirim Avatar answered Oct 25 '22 20:10

Ibrahim Yildirim