From 08d7b1735791dd828db0fc87bf8b1f1d31e9b4c4 Mon Sep 17 00:00:00 2001 From: Mike Hardy Date: Tue, 28 Nov 2023 15:42:36 -0500 Subject: [PATCH] test(ios): quiet warnings about deployment target mismatches this have no value and clutter the build log --- tests/ios/Podfile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tests/ios/Podfile b/tests/ios/Podfile index 64a74d4896..fa8a65dd8c 100644 --- a/tests/ios/Podfile +++ b/tests/ios/Podfile @@ -19,6 +19,9 @@ $RNFirebaseAsStaticFramework = true # toggle this to true (and set 'use_framewor # Toggle this to true if you want to include support for on device conversion measurement APIs $RNFirebaseAnalyticsGoogleAppMeasurementOnDeviceConversion = true +# react-native 0.72 is currently iOS 12.4 as a minimum +min_ios_version_supported = 12.4 + # Resolve react_native_pods.rb with node to allow for hoisting require Pod::Executable.execute_command('node', ['-p', 'require.resolve( @@ -93,16 +96,22 @@ target 'testing' do # Turn off warnings on non-RNFB dependencies - some of them are really really noisy - # Also bumps minimum deploy target to ours (which is >12.4): https://github.com/facebook/react-native/issues/34106 installer.pods_project.targets.each do |target| if !target.name.include? "RNFB" target.build_configurations.each do |config| config.build_settings["GCC_WARN_INHIBIT_ALL_WARNINGS"] = "YES" - config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = min_ios_version_supported end end end + # Bumps minimum deploy target to ours (which is >12.4): https://github.com/facebook/react-native/issues/34106 + installer.pods_project.targets.each do |target| + target.build_configurations.each do |config| + config.build_settings["GCC_WARN_INHIBIT_ALL_WARNINGS"] = "YES" + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = min_ios_version_supported + end + end + __apply_Xcode_12_5_M1_post_install_workaround(installer) end end