I am trying to update my ios app which has been released since 2022. During "pod install", following error occurs.
Ignoring strscan-3.1.0 because its extensions are not built. Try: gem pristine strscan --version 3.1.0
Analyzing dependencies
cloud_firestore: Using Firebase SDK version '11.4.0' defined in 'firebase_core'
firebase_analytics: Using Firebase SDK version '11.4.0' defined in 'firebase_core'
firebase_app_installations: Using Firebase SDK version '11.4.0' defined in 'firebase_core'
firebase_auth: Using Firebase SDK version '11.4.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '11.4.0' defined in 'firebase_core'
firebase_in_app_messaging: Using Firebase SDK version '11.4.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '11.4.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "FirebaseCore":
In Podfile:
cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 5.6.0, which depends on
Firebase/Firestore (= 11.4.0) was resolved to 11.4.0, which depends on
FirebaseFirestore (~> 11.4.0) was resolved to 11.4.0, which depends on
FirebaseCore (~> 11.4)
cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 5.6.0, which depends on
Firebase/Firestore (= 11.4.0) was resolved to 11.4.0, which depends on
FirebaseFirestore (~> 11.4.0) was resolved to 11.4.0, which depends on
FirebaseFirestoreInternal (= 11.4.0) was resolved to 11.4.0, which depends on
FirebaseCore (~> 11.0)
firebase_core (from `.symlinks/plugins/firebase_core/ios`) was resolved to 3.9.0, which depends on
Firebase/CoreOnly (= 11.4.0) was resolved to 11.4.0, which depends on
FirebaseCore (= 11.4.0)
CocoaPods could not find compatible versions for pod "FirebaseInstallations":
In Podfile:
firebase_app_installations (from `.symlinks/plugins/firebase_app_installations/ios`) was resolved to 0.3.1-7, which depends on
Firebase/Installations (= 11.4.0) was resolved to 11.4.0, which depends on
FirebaseInstallations (~> 11.4.0)
firebase_in_app_messaging (from `.symlinks/plugins/firebase_in_app_messaging/ios`) was resolved to 0.8.0-11, which depends on
Firebase/InAppMessaging (= 11.4.0) was resolved to 11.4.0, which depends on
FirebaseInAppMessaging (~> 11.4.0-beta) was resolved to 11.4.0-beta, which depends on
FirebaseInstallations (~> 11.0)
CocoaPods could not find compatible versions for pod "GoogleAppMeasurement":
In Podfile:
firebase_analytics (from `.symlinks/plugins/firebase_analytics/ios`) was resolved to 11.3.6, which depends on
Firebase/Analytics (= 11.4.0) was resolved to 11.4.0, which depends on
Firebase/Core (= 11.4.0) was resolved to 11.4.0, which depends on
FirebaseAnalytics (~> 11.4.0) was resolved to 11.4.0, which depends on
FirebaseAnalytics/AdIdSupport (= 11.4.0) was resolved to 11.4.0, which depends on
GoogleAppMeasurement (= 11.4.0)
google_mobile_ads (from `.symlinks/plugins/google_mobile_ads/ios`) was resolved to 1.0.0, which depends on
Google-Mobile-Ads-SDK (~> 9.13) was resolved to 9.14.0, which depends on
GoogleAppMeasurement (< 11.0, >= 7.0)
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!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
end
end
end
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end
What I have done is:
also, podfile.lock file was removed.
flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.27.1, on macOS 15.0.1 24A348 darwin-arm64, locale ja-JP)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.92.2)
[✓] Connected device (5 available)
[✓] Network resources
Does anybody know what else should I do?