Skip to content

Commit 46159fc

Browse files
authored
fix(ios): respect app minimum in generated CocoaPods targets (block#8379)
Xcode 27 rejects generated CocoaPods targets with deployment versions below iOS 15, even though the app already requires iOS 16. Raise lower explicit pod deployment targets to the existing iOS 16 minimum during installation, preserving targets that require a newer version. ### Validation On main at 7852b16, the ordinary unsigned Release build with exact Xcode 27.0 failed on pod targets set to iOS 9–13. After this change and a normal pod install, none of the 189 generated build configurations specifies a target below iOS 16, and the same build passes deployment-target validation without a command-line override. The full build remains blocked by the independent swift-secp256k1 0.21.1 `UInt256.words` compiler ambiguity. This PR does not fix or change that dependency. Xcode pin [buzz-releases#110](squareup/buzz-releases#110) remains gated on a complete ordinary release build and its other prerequisites. Related: Wes’s [PR block#8330](block#8330) independently includes a similar Podfile fix alongside DeviceHub changes. This PR contains only the Podfile floor and its lockfile checksum. Full local `just ci` passed; focused iOS validation above is complete. The regenerated lockfile changes only the Podfile checksum; `pod install --deployment` succeeds with CocoaPods 1.16.2. --------- Signed-off-by: Tom Brow <[email protected]>
1 parent d039d9a commit 46159fc

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎mobile/ios/Podfile‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ end
3838
post_install do |installer|
3939
installer.pods_project.targets.each do |target|
4040
flutter_additional_ios_build_settings(target)
41+
target.build_configurations.each do |config|
42+
minimum = Gem::Version.new('16.0')
43+
current = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET']
44+
if current && Gem::Version.new(current) < minimum
45+
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = minimum.to_s
46+
end
47+
end
4148
end
4249
# Flutter creates plugin symlinks during installation, so load the upstream
4350
# helper here rather than requiring an existing Pods install at parse time.

‎mobile/ios/Podfile.lock‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,6 @@ SPEC CHECKSUMS:
227227
url_launcher_ios: 7a95fa5b60cc718a708b8f2966718e93db0cef1b
228228
video_player_avfoundation: dd410b52df6d2466a42d28550e33e4146928280a
229229

230-
PODFILE CHECKSUM: 3aac4aa13c3166f951fe137719268b7dc62b9110
230+
PODFILE CHECKSUM: ed10001903303a0ae660957e1d727012a3136046
231231

232232
COCOAPODS: 1.16.2

0 commit comments

Comments
 (0)