-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 [firebase_remote_config] CocoaPods could not find compatible versions for pod "Firebase/RemoteConfig" #9857
Comments
@ziadsarour |
@darshankawar Hi, thank you for your reply. SDK overriding 10.1.0 + Invertase Firestore SDK 10.1.0PodfileClick To Expand# Override Firebase SDK Version
$FirebaseSDKVersion = '10.1.0'
# 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
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => $FirebaseSDKVersion
# pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :branch => "@russell/ios-10"
# pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => "@russell/ios-10"
# pod 'FirebaseRemoteConfig', :git => 'https://github.com/firebase/firebase-ios-sdk.git', :tag => '10.0.0'
pod 'RevenueCat', :git => 'https://github.com/RevenueCat/purchases-ios.git', :tag => '4.13.4'
pod 'PurchasesHybridCommon', :git => 'https://github.com/RevenueCat/purchases-hybrid-common.git', :tag => '4.3.6'
use_frameworks!
use_modular_headers!
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)
target.build_configurations.each do |config|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',
# 'PERMISSION_EVENTS=1', ## dart: PermissionGroup.calendar
# 'PERMISSION_REMINDERS=1', ## dart: PermissionGroup.reminders
# 'PERMISSION_CONTACTS=1', ## dart: PermissionGroup.contacts
'PERMISSION_CAMERA=1', ## dart: PermissionGroup.camera
# 'PERMISSION_MICROPHONE=1', ## dart: PermissionGroup.microphone
# 'PERMISSION_SPEECH_RECOGNIZER=1', ## dart: PermissionGroup.speech
'PERMISSION_PHOTOS=1', ## dart: PermissionGroup.photos
# 'PERMISSION_LOCATION=1', ## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
'PERMISSION_NOTIFICATIONS=1', ## dart: PermissionGroup.notification
# 'PERMISSION_MEDIA_LIBRARY=1', ## dart: PermissionGroup.mediaLibrary
# 'PERMISSION_SENSORS=1', ## dart: PermissionGroup.sensors
# 'PERMISSION_BLUETOOTH=1', ## dart: PermissionGroup.bluetooth
# 'PERMISSION_APP_TRACKING_TRANSPARENCY=1', ## dart: PermissionGroup.appTrackingTransparency
# 'PERMISSION_CRITICAL_ALERTS=1' ## dart: PermissionGroup.criticalAlerts
]
end
end
end ResultClick To Expandrm -rf Pods && rm -f Podfile.lock && rm -rf .symlinks && pod cache clean --all && pod deintegrate && pod install
Deintegrating `Runner.xcodeproj`
Removing `Pods` directory.
Project has been deintegrated. No traces of CocoaPods left in project.
Note: The workspace referencing the Pods project still remains.
Analyzing dependencies
Pre-downloading: `FirebaseFirestore` from `https://github.com/invertase/firestore-ios-sdk-frameworks.git`, tag `10.1.0`
FirebaseFirestore/AutodetectLeveldb: subspec would include leveldb if used directly or by default.
Pre-downloading: `PurchasesHybridCommon` from `https://github.com/RevenueCat/purchases-hybrid-common.git`, tag `4.3.6`
Pre-downloading: `RevenueCat` from `https://github.com/RevenueCat/purchases-ios.git`, tag `4.13.4`
cloud_functions: Using user specified Firebase SDK version '10.1.0'
firebase_analytics: Using user specified Firebase SDK version '10.1.0'
firebase_core: Using user specified Firebase SDK version '10.1.0'
Run script to upload symbols already exists.
firebase_crashlytics: Using user specified Firebase SDK version '10.1.0'
firebase_dynamic_links: Using user specified Firebase SDK version '10.1.0'
firebase_performance: Using user specified Firebase SDK version '10.1.0'
firebase_remote_config: Using user specified Firebase SDK version '10.1.0'
firebase_storage: Using user specified Firebase SDK version '10.1.0'
[!] CocoaPods could not find compatible versions for pod "Firebase/Storage":
In Podfile:
firebase_storage (from `.symlinks/plugins/firebase_storage/ios`) was resolved to 11.0.4, which depends on
Firebase/Storage (= 10.1.0)
None of your spec sources contain a spec satisfying the dependency: `Firebase/Storage (= 10.1.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. I have also tried with : pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :branch => "@russell/ios-10" and pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => "10.0.0" WITHOUT Invertase Firestore SDKPodfileClick To Expand# Override Firebase SDK Version
# $FirebaseSDKVersion = '10.1.0'
# 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
# pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => $FirebaseSDKVersion
# pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :branch => "@russell/ios-10"
# pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => "@russell/ios-10"
# pod 'FirebaseRemoteConfig', :git => 'https://github.com/firebase/firebase-ios-sdk.git', :tag => '10.0.0'
pod 'RevenueCat', :git => 'https://github.com/RevenueCat/purchases-ios.git', :tag => '4.13.4'
pod 'PurchasesHybridCommon', :git => 'https://github.com/RevenueCat/purchases-hybrid-common.git', :tag => '4.3.6'
use_frameworks!
use_modular_headers!
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)
target.build_configurations.each do |config|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',
# 'PERMISSION_EVENTS=1', ## dart: PermissionGroup.calendar
# 'PERMISSION_REMINDERS=1', ## dart: PermissionGroup.reminders
# 'PERMISSION_CONTACTS=1', ## dart: PermissionGroup.contacts
'PERMISSION_CAMERA=1', ## dart: PermissionGroup.camera
# 'PERMISSION_MICROPHONE=1', ## dart: PermissionGroup.microphone
# 'PERMISSION_SPEECH_RECOGNIZER=1', ## dart: PermissionGroup.speech
'PERMISSION_PHOTOS=1', ## dart: PermissionGroup.photos
# 'PERMISSION_LOCATION=1', ## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
'PERMISSION_NOTIFICATIONS=1', ## dart: PermissionGroup.notification
# 'PERMISSION_MEDIA_LIBRARY=1', ## dart: PermissionGroup.mediaLibrary
# 'PERMISSION_SENSORS=1', ## dart: PermissionGroup.sensors
# 'PERMISSION_BLUETOOTH=1', ## dart: PermissionGroup.bluetooth
# 'PERMISSION_APP_TRACKING_TRANSPARENCY=1', ## dart: PermissionGroup.appTrackingTransparency
# 'PERMISSION_CRITICAL_ALERTS=1' ## dart: PermissionGroup.criticalAlerts
]
end
end
end ResultClick To Expandrm -rf Pods && rm -f Podfile.lock && rm -rf .symlinks && pod cache clean --all && pod deintegrate && pod install
Deintegrating `Runner.xcodeproj`
Removing `Pods` directory.
Project has been deintegrated. No traces of CocoaPods left in project.
Note: The workspace referencing the Pods project still remains.
Analyzing dependencies
Pre-downloading: `PurchasesHybridCommon` from `https://github.com/RevenueCat/purchases-hybrid-common.git`, tag `4.3.6`
Pre-downloading: `RevenueCat` from `https://github.com/RevenueCat/purchases-ios.git`, tag `4.13.4`
cloud_functions: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_analytics: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
Run script to upload symbols already exists.
firebase_crashlytics: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_dynamic_links: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_performance: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_remote_config: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_storage: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "Firebase/RemoteConfig":
In Podfile:
firebase_remote_config (from `.symlinks/plugins/firebase_remote_config/ios`) was resolved to 3.0.4, which depends on
Firebase/RemoteConfig (= 10.0.0)
None of your spec sources contain a spec satisfying the dependency: `Firebase/RemoteConfig (= 10.0.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. |
I'm still stuck and can't upgrade to firebase 10. |
@ziadsarour |
Hi, it might be the same issue, I also have mobile_scanner installed. My pod error doesn't tell me anything about MLKit. I can't test by deactivating mobile_scanner (to test if build pass) because mobile_scanner is a core feature in my app. It will be too complicated to deactivate it. Thank you for the hint |
@ziadsarour |
Thank you for the hint, I will try later because I don't have the time to test each library one by one. |
@ziadsarour |
Hey @ziadsarour. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
Since there haven't been any recent updates here, I am going to close this issue. @ziadsarour if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this. |
Bug report
Describe the bug
Hi,
My app doesn't build anymore because I can't install pod for firebase_remote_config.
I've upgraded all firebase packages to latest.
pubspec.yml
Click To Expand
Podfile
Click To Expand
Flutter doctor
Click To Expand
Flutter dependencies
Click To Expand
OS
Click To Expand
MacBook Pro
13-inch, 2017, Four Thunderbolt 3 Ports
3,5 GHz Intel Core i7 double cœur
Intel Iris Plus Graphics 650 1536 Mo
16 Go 2133 MHz LPDDR3
macOS 13.0 (22A380)
Xcode Version 14.1 (14B47b)
The text was updated successfully, but these errors were encountered: