lib/cocoapods/installer/user_project_integrator.rb
# Checks whether the settings of the CocoaPods generated xcconfig are
# overridden by the build configuration of a target and prints a
# warning to inform the user if needed.
#
Checks whether the settings of the CocoaPods generated xcconfig are
overridden by the build configuration of a target and prints a
warning to inform the user if needed.
Checks whether the settings of the CocoaPods generated xcconfig are overridden by the build configuration of a target and prints a warning to inform the user if needed .
def warn_about_xcconfig_overrides
        targets.each do |aggregate_target|
          aggregate_target.user_targets.each do |user_target|
            user_target.build_configurations.each do |config|
              xcconfig = aggregate_target.xcconfigs[config.name]
              if xcconfig
                (xcconfig.to_hash.keys - IGNORED_KEYS).each do |key|
                  target_values = config.build_settings[key]
                  if target_values &&
                      !INHERITED_FLAGS.any? { |flag| target_values.include?(flag) }
                    print_override_warning(aggregate_target, user_target, config, key)
                  end
                end
              end
            end
          end
        end
      end
def warn_about_xcconfig_overrides targets . each do | aggregate_target | aggregate_target . user_targets . each do | user_target | user_target . build_configurations . each do | config | xcconfig = aggregate_target . xcconfigs [ config . name ] if xcconfig ( xcconfig . to_hash . keys - IGNORED_KEYS ) . each do | key | target_values = config . build_settings [ key ] if target_values && ! INHERITED_FLAGS . any? { | flag | target_values . include? ( flag ) } print_override_warning ( aggregate_target , user_target , config , key ) end end end end end end end
Checks whether the settings of the CocoaPods generated xcconfig are
overridden by the build configuration of a target and prints a
warning to inform the user if needed.
Checks whether the settings of the CocoaPods generated xcconfig are overridden by the build configuration of a target and prints a warning to inform the user if needed .