Error CocoaPods could not find compatible versions for pod "FirebaseFirestore"
wdtheprovider opened this issue · 1 comments
Since I updated my M1 to MacOS 13 Ventura, I get this error "CocoaPods could not find compatible versions for pod "FirebaseFirestore" " and I don't know if it's a known issue or what. I have been struggling since yesterday.
[!] CocoaPods could not find compatible versions for pod "FirebaseFirestore":
In Podfile:
FirebaseFirestore (from `https://github.com/invertase/firestore-ios-sdk-frameworks.git`, tag `10.1.0`)
cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 4.0.3, which depends on
Firebase/Firestore (= 10.0.0) was resolved to 10.0.0, which depends on
FirebaseFirestore (~> 10.0.0)
when I change back to 'version 10.0.0' i get the following error
[!] CocoaPods could not find compatible versions for pod "GoogleAppMeasurement":
In Podfile:
firebase_analytics (from `.symlinks/plugins/firebase_analytics/ios`) was resolved to 10.0.3, which depends on
Firebase/Analytics (= 10.0.0) was resolved to 10.0.0, which depends on
Firebase/Core (= 10.0.0) was resolved to 10.0.0, which depends on
FirebaseAnalytics (~> 10.0.0) was resolved to 10.0.0, which depends on
FirebaseAnalytics/AdIdSupport (= 10.0.0) was resolved to 10.0.0, which depends on
GoogleAppMeasurement (= 10.0.0)
google_mobile_ads (from `.symlinks/plugins/google_mobile_ads/ios`) was resolved to 0.0.1, which depends on
Google-Mobile-Ads-SDK (= 9.6.0) was resolved to 9.6.0, which depends on
GoogleAppMeasurement (< 10.0, >= 7.0)
dependencies:
firebase_core: ^2.1.1
firebase_analytics: ^10.0.3
cloud_firestore: ^4.0.3
firebase_auth: ^4.1.0
firebase_messaging: ^14.0.3
firebase_database: ^10.0.3
firebase_remote_config: ^3.0.3
PodFile
# Uncomment this line to define a global platform for your project
platform :ios, '13.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_ios_podfile_setup
target 'Runner' do
use_frameworks!
use_modular_headers!
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '10.1.0'
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end
Your google mobile ads depends on a lower version of firebase-ios-sdk transitive dependency (< 10) components than flutter-fire does (10.0.0)
You'll have to take that up with your google mobile ads module so they bump their dependency, or you'll have to use older versions of flutter-fire that do not rely on firebase-ios-sdk 10+