Skip to content

Commit

Permalink
test(ios): quiet warnings about deployment target mismatches
Browse files Browse the repository at this point in the history
this have no value and clutter the build log
  • Loading branch information
mikehardy committed Nov 28, 2023
1 parent fcfdd9b commit 08d7b17
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions tests/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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

0 comments on commit 08d7b17

Please sign in to comment.