lib/cocoapods/installer/user_project_integrator/target_integrator.rb
# Adds the `xcconfig` configurations files generated for the current
# {TargetDefinition} to the build configurations of the targets that
# should be integrated.
#
# @note   It also checks if any build setting of the build
#         configurations overrides the `xcconfig` file and warns the
#         user.
#
# @todo   If the xcconfig is already set don't override it and inform
#         the user.
#
# @return [void]
#
Adds the `xcconfig` configurations files generated for the current
{TargetDefinition} to the build configurations of the targets that
should be integrated.
Adds the ` xcconfig ` configurations files generated for the current { TargetDefinition } to the build configurations of the targets that should be integrated .
def add_xcconfig_base_configuration
          xcconfig = user_project.new_file(library.xcconfig_relative_path)
          targets.each do |target|
            check_overridden_build_settings(library.xcconfig, target)
            target.build_configurations.each do |config|
              config.base_configuration_reference = xcconfig
            end
          end
        end
def add_xcconfig_base_configuration xcconfig = user_project . new_file ( library . xcconfig_relative_path ) targets . each do | target | check_overridden_build_settings ( library . xcconfig , target ) target . build_configurations . each do | config | config . base_configuration_reference = xcconfig end end end
Adds the `xcconfig` configurations files generated for the current
{TargetDefinition} to the build configurations of the targets that
should be integrated.
Adds the ` xcconfig ` configurations files generated for the current { TargetDefinition } to the build configurations of the targets that should be integrated .
None
void
note
It also checks if any build setting of the build configurations overrides the `xcconfig` file and warns the user.
It also checks if any build setting of the build configurations overrides the ` xcconfig ` file and warns the user .
todo
If the xcconfig is already set don't override it and inform the user.
If the xcconfig is already set don ' t override it and inform the user .