fix: align pod deployment targets with iOS 16 minimum

Signed-off-by: Tom Brow <tomb@block.xyz>
This commit is contained in:
Tom Brow
2026-10-12 12:09:18 -07:00
parent 005566110f
commit 7566b6d1c8

View File

@@ -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.