lib/cocoapods/installer/user_project_integrator/target_integrator.rb
def check_overridden_build_settings(xcconfig, target)
          return unless xcconfig

          configs_by_overridden_key = {}
          target.build_configurations.each do |config|
            xcconfig.attributes.keys.each do |key|
              target_value = config.build_settings[key]

              if target_value && !target_value.include?('$(inherited)')
                configs_by_overridden_key[key] ||= []
                configs_by_overridden_key[key] << config.name
              end
            end

            configs_by_overridden_key.each do |key, config_names|
              name    = "#{target.name} [#{config_names.join(' - ')}]"
              actions = [
                "Use the `$(inherited)` flag, or",
                "Remove the build settings from the target."
              ]
              UI.warn("The target `#{name}` overrides the `#{key}` build " \
                      "setting defined in `#{library.xcconfig_relative_path}'.",
                      actions)
            end
          end
        end
# Informs the user about any build setting of the target which might
# override the given xcconfig file.
#
# @return [void]
#
Informs the user about any build setting of the target which might
override the given xcconfig file.
Informs the user about any build setting of the target which might override the given xcconfig file .
def check_overridden_build_settings(xcconfig, target)
          return unless xcconfig
          configs_by_overridden_key = {}
          target.build_configurations.each do |config|
            xcconfig.attributes.keys.each do |key|
              target_value = config.build_settings[key]
              if target_value && !target_value.include?('$(inherited)')
                configs_by_overridden_key[key] ||= []
                configs_by_overridden_key[key] << config.name
              end
            end
            configs_by_overridden_key.each do |key, config_names|
              name    = "#{target.name} [#{config_names.join(' - ')}]"
              actions = [
                "Use the `$(inherited)` flag, or",
                "Remove the build settings from the target."
              ]
              UI.warn("The target `#{name}` overrides the `#{key}` build " \
                      "setting defined in `#{library.xcconfig_relative_path}'.",
                      actions)
            end
          end
        end
def check_overridden_build_settings ( xcconfig , target ) return unless xcconfig configs_by_overridden_key = { } target . build_configurations . each do | config | xcconfig . attributes . keys . each do | key | target_value = config . build_settings [ key ] if target_value && ! target_value . include? ( '$(inherited)' ) configs_by_overridden_key [ key ] ||= [ ] configs_by_overridden_key [ key ] << config . name end end configs_by_overridden_key . each do | key , config_names | name = "#{target.name} [#{config_names.join(' - ')}]" actions = [ "Use the `$(inherited)` flag, or" , "Remove the build settings from the target." ] UI . warn ( "The target `#{name}` overrides the `#{key}` build " "setting defined in `#{library.xcconfig_relative_path}'." , actions ) end end end
Informs the user about any build setting of the target which might
override the given xcconfig file.
Informs the user about any build setting of the target which might override the given xcconfig file .
None
void
xcconfig
target