-
Notifications
You must be signed in to change notification settings - Fork 30.2k
Unable to run project ton iOS. CocoaPods could not find compatible versions for pod "Firebase/CoreOnly" #168660
Copy link
Copy link
Closed
Labels
r: invalidIssue is closed as not validIssue is closed as not valid
Description
Steps to reproduce
- Create a Flutter project with Flutter version: 3.24.5
- Add the following dependencies:
dependencies:
firebase_core: ^3.0.0
firebase_messaging: ^15.0.1
mobile_scanner: ^5.1.1
- Run project on iPhone 16 Pro Max Simulator
Other info:
❗️ Earlier, when I was on macOS Sonoma, and Xcode 15, everything was working fine.
My MacOs version:
Sequoia 15.4.1 (24E263)
My Xcode version:
16.3 (16E140)
My cocoapods version:
1.16.2
My Podfile:
# Uncomment this line to define a global platform for your project
platform :ios, '14.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!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
target 'RunnerTests' do
inherit! :search_paths
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
# Custom config
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
config.build_settings['ENABLE_BITCODE'] = 'NO'
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',
## dart: PermissionGroup.calendar
# 'PERMISSION_EVENTS=0',
## dart: PermissionGroup.reminders
# 'PERMISSION_REMINDERS=0',
## dart: PermissionGroup.contacts
# 'PERMISSION_CONTACTS=0',
## dart: PermissionGroup.camera
'PERMISSION_CAMERA=0',
## dart: PermissionGroup.microphone
'PERMISSION_MICROPHONE=0',
## dart: PermissionGroup.speech
'PERMISSION_SPEECH_RECOGNIZER=0',
## dart: PermissionGroup.photos
'PERMISSION_PHOTOS=0',
## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
'PERMISSION_LOCATION=0',
## dart: PermissionGroup.notification
'PERMISSION_NOTIFICATIONS=0',
## dart: PermissionGroup.mediaLibrary
'PERMISSION_MEDIA_LIBRARY=0',
## dart: PermissionGroup.sensors
# 'PERMISSION_SENSORS=0'
]
end
end
end
Actual results
Upon running "flutter run" I am getting:
[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":
In snapshot (Podfile.lock):
Firebase/CoreOnly (= 10.28.0)
In Podfile:
firebase_core (from `.symlinks/plugins/firebase_core/ios`) was resolved to 3.4.0, which depends on
Firebase/CoreOnly (= 11.0.0)
You have either:
* changed the constraints of dependency `Firebase/CoreOnly` inside your development pod `firebase_core`.
You should run `pod update Firebase/CoreOnly` to apply changes you've made.
Logs
Logs
flutter run
Launching lib/main.dart on iPhone 16 Pro Max in debug mode...
Running pod install... 1,602ms
CocoaPods' output:
↳
Preparing
Analyzing dependencies
Inspecting targets to integrate
Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
Using `ARCHS` setting to build architectures of target `Pods-RunnerTests`: (``)
Finding Podfile changes
- Flutter
- firebase_core
- firebase_messaging
- flutter_local_notifications
- fluttertoast
- geocoding_ios
- geolocator_apple
- google_maps_flutter_ios
- image_gallery_saver
- image_picker_ios
- mobile_scanner
- path_provider_foundation
- permission_handler_apple
- share_plus
- shared_preferences_foundation
- speech_to_text
- url_launcher_ios
Fetching external sources
-> Fetching podspec for `Flutter` from `Flutter`
-> Fetching podspec for `firebase_core` from `.symlinks/plugins/firebase_core/ios`
firebase_core: Using Firebase SDK version '11.0.0' defined in 'firebase_core'
-> Fetching podspec for `firebase_messaging` from `.symlinks/plugins/firebase_messaging/ios`
firebase_messaging: Using Firebase SDK version '11.0.0' defined in 'firebase_core'
-> Fetching podspec for `flutter_local_notifications` from
`.symlinks/plugins/flutter_local_notifications/ios`
-> Fetching podspec for `fluttertoast` from `.symlinks/plugins/fluttertoast/ios`
-> Fetching podspec for `geocoding_ios` from `.symlinks/plugins/geocoding_ios/ios`
-> Fetching podspec for `geolocator_apple` from `.symlinks/plugins/geolocator_apple/ios`
-> Fetching podspec for `google_maps_flutter_ios` from `.symlinks/plugins/google_maps_flutter_ios/ios`
-> Fetching podspec for `image_gallery_saver` from `.symlinks/plugins/image_gallery_saver/ios`
-> Fetching podspec for `image_picker_ios` from `.symlinks/plugins/image_picker_ios/ios`
-> Fetching podspec for `mobile_scanner` from `.symlinks/plugins/mobile_scanner/ios`
-> Fetching podspec for `path_provider_foundation` from
`.symlinks/plugins/path_provider_foundation/darwin`
-> Fetching podspec for `permission_handler_apple` from
`.symlinks/plugins/permission_handler_apple/ios`
-> Fetching podspec for `share_plus` from `.symlinks/plugins/share_plus/ios`
-> Fetching podspec for `shared_preferences_foundation` from
`.symlinks/plugins/shared_preferences_foundation/darwin`
-> Fetching podspec for `speech_to_text` from `.symlinks/plugins/speech_to_text/ios`
-> Fetching podspec for `url_launcher_ios` from `.symlinks/plugins/url_launcher_ios/ios`
Resolving dependencies of `Podfile`
CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only
performed in repo update
CDN: trunk Relative path: all_pods_versions_0_3_5.txt exists! Returning local because checking is
only performed in repo update
CDN: trunk Relative path: Specs/0/3/5/Firebase/11.12.0/Firebase.podspec.json exists! Returning local
because checking is only performed in repo update
CDN: trunk Relative path: all_pods_versions_5_1_0.txt exists! Returning local because checking is
only performed in repo update
CDN: trunk Relative path: Specs/5/1/0/Toast/4.1.1/Toast.podspec.json exists! Returning local because
checking is only performed in repo update
CDN: trunk Relative path: all_pods_versions_a_d_d.txt exists! Returning local because checking is
only performed in repo update
CDN: trunk Relative path: Specs/a/d/d/GoogleMaps/9.4.0/GoogleMaps.podspec.json exists! Returning
local because checking is only performed in repo update
CDN: trunk Relative path: all_pods_versions_3_5_e.txt exists! Returning local because checking is
only performed in repo update
CDN: trunk Relative path: Specs/3/5/e/Google-Maps-iOS-Utils/6.1.0/Google-Maps-iOS-Utils.podspec.json
exists! Returning local because checking is only performed in repo update
CDN: trunk Relative path: all_pods_versions_b_e_b.txt exists! Returning local because checking is
only performed in repo update
CDN: trunk Relative path: Specs/b/e/b/GoogleMLKit/8.0.0/GoogleMLKit.podspec.json exists! Returning
local because checking is only performed in repo update
CDN: trunk Relative path: Specs/b/e/b/GoogleMLKit/6.0.0/GoogleMLKit.podspec.json exists! Returning
local because checking is only performed in repo update
CDN: trunk Relative path: all_pods_versions_4_2_c.txt exists! Returning local because checking is
only performed in repo update
CDN: trunk Relative path: Specs/4/2/c/FlutterMacOS/3.16.0/FlutterMacOS.podspec.json exists! Returning
local because checking is only performed in repo update
CDN: trunk Relative path: all_pods_versions_e_e_a.txt exists! Returning local because checking is
only performed in repo update
CDN: trunk Relative path: Specs/e/e/a/Try/2.1.1/Try.podspec.json exists! Returning local because
checking is only performed in repo update
CDN: trunk Relative path: Specs/0/3/5/Firebase/11.0.0/Firebase.podspec.json exists! Returning local
because checking is only performed in repo update
[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":
In snapshot (Podfile.lock):
Firebase/CoreOnly (= 10.28.0)
In Podfile:
firebase_core (from `.symlinks/plugins/firebase_core/ios`) was resolved to 3.4.0, which depends on
Firebase/CoreOnly (= 11.0.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 `Firebase/CoreOnly` inside your development pod
`firebase_core`.
You should run `pod update Firebase/CoreOnly` to apply changes you've made.
/Users/c-2381/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/molinillo-0.8.0/lib/molinillo/resolution.r
b:317:in `raise_error_unless_state'
/Users/c-2381/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/molinillo-0.8.0/lib/molinillo/resolution.r
b:299:in `block in unwind_for_conflict'
<internal:kernel>:90:in `tap'
/Users/c-2381/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/molinillo-0.8.0/lib/molinillo/resolution.r
b:297:in `unwind_for_conflict'
/Users/c-2381/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/molinillo-0.8.0/lib/molinillo/resolution.r
b:257:in `process_topmost_state'
/Users/c-2381/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/molinillo-0.8.0/lib/molinillo/resolution.r
b:182:in `resolve'
/Users/c-2381/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/molinillo-0.8.0/lib/molinillo/resolver.rb:
43:in `resolve'
/Users/c-2381/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/resolver.rb
:94:in `resolve'
/Users/c-2381/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/installer/a
nalyzer.rb:1082:in `block in resolve_dependencies'
/Users/c-2381/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/user_interf
ace.rb:64:in `section'
/Users/c-2381/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/installer/a
nalyzer.rb:1080:in `resolve_dependencies'
/Users/c-2381/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/installer/a
nalyzer.rb:125:in `analyze'
/Users/c-2381/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/installer.r
b:422:in `analyze'
/Users/c-2381/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/installer.r
b:244:in `block in resolve_dependencies'
/Users/c-2381/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/user_interf
ace.rb:64:in `section'
/Users/c-2381/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/installer.r
b:243:in `resolve_dependencies'
/Users/c-2381/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/installer.r
b:162:in `install!'
/Users/c-2381/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/command/ins
tall.rb:52:in `run'
/Users/c-2381/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/claide-1.1.0/lib/claide/command.rb:334:in
`run'
/Users/c-2381/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/command.rb:
52:in `run'
/Users/c-2381/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/bin/pod:55:in `<top
(required)>'
/Users/c-2381/.rbenv/versions/3.2.2/bin/pod:25:in `load'
/Users/c-2381/.rbenv/versions/3.2.2/bin/pod:25:in `<main>'
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
Error launching application on iPhone 16 Pro Max.
Flutter Doctor output
Doctor output (verbose)
[✓] Flutter (Channel stable, 3.24.5, on macOS 15.4.1 24E263 darwin-x64, locale en-US)
• Flutter version 3.24.5 on channel stable at /Users/c-2381/development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision dec2ee5c1f (6 months ago), 2024-11-13 11:13:06 -0800
• Engine revision a18df97ca5
• Dart version 3.5.4
• DevTools version 2.37.3
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
• Android SDK at /Users/c-2381/Library/Android/sdk
• Platform android-35, build-tools 35.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 16.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16E140
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2024.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)
[✓] VS Code (version 1.99.3)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.110.0
[✓] Connected device (3 available)
• iPhone 16 Pro Max (mobile) • 8BCC6BAC-ED2E-4F91-85A2-621256DABE0D • ios •
com.apple.CoreSimulator.SimRuntime.iOS-18-4 (simulator)
• macOS (desktop) • macos • darwin-x64 • macOS 15.4.1
24E263 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome
136.0.7103.93
[✓] Network resources
• All expected network resources are available.
• No issues found!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
r: invalidIssue is closed as not validIssue is closed as not valid