From 7566b6d1c8a38097e767f0bede96a931f43f9340 Mon Sep 17 00:00:00 2001 From: Tom Brow Date: Mon, 12 Oct 2026 12:09:18 -0700 Subject: [PATCH] fix: align pod deployment targets with iOS 16 minimum Signed-off-by: Tom Brow --- mobile/ios/Podfile | 8 ++++++++ 1 file changed, 8 insertions(+) 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.