Skip to content

Commit 08d7b17

Browse files
committed
test(ios): quiet warnings about deployment target mismatches
this have no value and clutter the build log
1 parent fcfdd9b commit 08d7b17

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

tests/ios/Podfile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ $RNFirebaseAsStaticFramework = true # toggle this to true (and set 'use_framewor
1919
# Toggle this to true if you want to include support for on device conversion measurement APIs
2020
$RNFirebaseAnalyticsGoogleAppMeasurementOnDeviceConversion = true
2121

22+
# react-native 0.72 is currently iOS 12.4 as a minimum
23+
min_ios_version_supported = 12.4
24+
2225
# Resolve react_native_pods.rb with node to allow for hoisting
2326
require Pod::Executable.execute_command('node', ['-p',
2427
'require.resolve(
@@ -93,16 +96,22 @@ target 'testing' do
9396

9497

9598
# Turn off warnings on non-RNFB dependencies - some of them are really really noisy
96-
# Also bumps minimum deploy target to ours (which is >12.4): https://github.com/facebook/react-native/issues/34106
9799
installer.pods_project.targets.each do |target|
98100
if !target.name.include? "RNFB"
99101
target.build_configurations.each do |config|
100102
config.build_settings["GCC_WARN_INHIBIT_ALL_WARNINGS"] = "YES"
101-
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = min_ios_version_supported
102103
end
103104
end
104105
end
105106

107+
# Bumps minimum deploy target to ours (which is >12.4): https://github.com/facebook/react-native/issues/34106
108+
installer.pods_project.targets.each do |target|
109+
target.build_configurations.each do |config|
110+
config.build_settings["GCC_WARN_INHIBIT_ALL_WARNINGS"] = "YES"
111+
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = min_ios_version_supported
112+
end
113+
end
114+
106115
__apply_Xcode_12_5_M1_post_install_workaround(installer)
107116
end
108117
end

0 commit comments

Comments
 (0)