diff --git a/mobile/ios/Podfile b/mobile/ios/Podfile index 901ba5aaa1..c26b45e02c 100644 --- a/mobile/ios/Podfile +++ b/mobile/ios/Podfile @@ -38,6 +38,14 @@ end post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) + # Xcode 27 rejects older pod deployment targets, even though Runner + # already requires iOS 16. Preserve pods that require a newer version. + target.build_configurations.each do |config| + minimum = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] || '0' + if Gem::Version.new(minimum) < Gem::Version.new('16.0') + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '16.0' + end + end end # Flutter creates plugin symlinks during installation, so load the upstream # helper here rather than requiring an existing Pods install at parse time.