diff --git a/Samples/ObjC/SignInSample/Podfile b/Samples/ObjC/SignInSample/Podfile index 52e6c140..4f9e2cf2 100644 --- a/Samples/ObjC/SignInSample/Podfile +++ b/Samples/ObjC/SignInSample/Podfile @@ -5,3 +5,17 @@ target 'SampleForPod' do pod 'GoogleSignIn', :path => '../../../', :testspecs => ['unit'] project 'SignInSampleForPod.xcodeproj' end + +post_install do |installer| + # Xcode 27 refuses to build a target whose deployment target is below iOS 15.0. + # Several transitive pods still declare lower floors in their own podspecs, so + # raise the generated Pods project targets to match this sample's own minimum. + installer.pods_project.targets.each do |target| + target.build_configurations.each do |config| + ios = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] + if ios && Gem::Version.new(ios) < Gem::Version.new('15.0') + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0' + end + end + end +end diff --git a/Samples/Swift/AppAttestExample/Podfile b/Samples/Swift/AppAttestExample/Podfile index 9e344324..5e1eb379 100644 --- a/Samples/Swift/AppAttestExample/Podfile +++ b/Samples/Swift/AppAttestExample/Podfile @@ -10,3 +10,17 @@ target 'AppAttestExampleForPod' do pod 'AppCheckCore' platform :ios, '15.0' end + +post_install do |installer| + # Xcode 27 refuses to build a target whose deployment target is below iOS 15.0. + # Several transitive pods still declare lower floors in their own podspecs, so + # raise the generated Pods project targets to match this sample's own minimum. + installer.pods_project.targets.each do |target| + target.build_configurations.each do |config| + ios = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] + if ios && Gem::Version.new(ios) < Gem::Version.new('15.0') + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0' + end + end + end +end diff --git a/Samples/Swift/DaysUntilBirthday/Podfile b/Samples/Swift/DaysUntilBirthday/Podfile index b661e932..ee203945 100644 --- a/Samples/Swift/DaysUntilBirthday/Podfile +++ b/Samples/Swift/DaysUntilBirthday/Podfile @@ -11,3 +11,22 @@ end target 'DaysUntilBirthdayForPod (macOS)' do platform :osx, '12.0' end + +post_install do |installer| + # Xcode 27 refuses to build a target whose deployment target is below iOS 15.0 + # or macOS 12.0. Several transitive pods still declare lower floors in their + # own podspecs, so raise the generated Pods project targets to match this + # sample's own minimums. + installer.pods_project.targets.each do |target| + target.build_configurations.each do |config| + ios = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] + if ios && Gem::Version.new(ios) < Gem::Version.new('15.0') + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0' + end + macos = config.build_settings['MACOSX_DEPLOYMENT_TARGET'] + if macos && Gem::Version.new(macos) < Gem::Version.new('12.0') + config.build_settings['MACOSX_DEPLOYMENT_TARGET'] = '12.0' + end + end + end +end