mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
fix: build settings for custom build configuration (#43780)
Summary: This allows build configuration named like `StagingDebug` to match with settings applied to `Debug` This fixes https://github.com/facebook/react-native/issues/43185 Custom build setting were only applied to `Debug` build configurations, preventing configurations named `StagingDebug` or similar to access the new experimental debugger, as reported in https://github.com/facebook/react-native/issues/43185 This now applies the setting to every configuration ending with `Debug` ## Changelog: [IOS] [CHANGED] - fix: build settings for custom build configuration Pull Request resolved: https://github.com/facebook/react-native/pull/43780 Reviewed By: dmytrorykun Differential Revision: D55688996 Pulled By: cipolleschi fbshipit-source-id: 1f34cd722f6acfaa08d3377e19a04d08af97ed7c
This commit is contained in:
@@ -189,7 +189,7 @@ class ReactNativePodsUtils
|
||||
installer.target_installation_results.pod_target_installation_results.each do |pod_name, target_installation_result|
|
||||
if pod_name.to_s == target_pod_name
|
||||
target_installation_result.native_target.build_configurations.each do |config|
|
||||
if configuration == nil || (configuration != nil && configuration == config.name)
|
||||
if configuration == nil || (configuration != nil && config.name.include?(configuration))
|
||||
config.build_settings[settings_name] ||= '$(inherited) '
|
||||
config.build_settings[settings_name] << settings_value
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user