Skip to content

Commit

Permalink
fix: build settings for custom build configuration
Browse files Browse the repository at this point in the history
This allows build configuration named like `StagingDebug` to match with settings applied to `Debug`
This fixes facebook#43185
  • Loading branch information
jblarriviere authored Apr 2, 2024
1 parent 0c02b26 commit c7f50e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native/scripts/cocoapods/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def self.add_build_settings_to_pod(installer, settings_name, settings_value, tar
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.ends_with?(configuration))
config.build_settings[settings_name] ||= '$(inherited) '
config.build_settings[settings_name] << settings_value
end
Expand Down

0 comments on commit c7f50e2

Please sign in to comment.