Commit 0d71f9e4 authored by Fabio Pelosin's avatar Fabio Pelosin

[UserProjectIntegrator] Don't warn about overridden build settings if silent.

parent d2dd1f93
...@@ -6,7 +6,6 @@ require 'active_support/core_ext/array/conversions' ...@@ -6,7 +6,6 @@ require 'active_support/core_ext/array/conversions'
module Pod module Pod
class Installer class Installer
class UserProjectIntegrator class UserProjectIntegrator
include Pod::Config::Mixin include Pod::Config::Mixin
...@@ -58,6 +57,8 @@ module Pod ...@@ -58,6 +57,8 @@ module Pod
end end
class TargetIntegrator class TargetIntegrator
include Pod::Config::Mixin
attr_reader :target_definition attr_reader :target_definition
def initialize(target_definition) def initialize(target_definition)
...@@ -151,11 +152,13 @@ module Pod ...@@ -151,11 +152,13 @@ module Pod
config.base_configuration = xcconfig config.base_configuration = xcconfig
end end
config_build_names_by_overriden_key.each do |key, config_build_names| unless config.silent?
name = "#{target.attributes["name"]} [#{config_build_names.join(' - ')}]" config_build_names_by_overriden_key.each do |key, config_build_names|
puts "\n[!] The target `#{name}' overrides the `#{key}' build setting defined in `#{@target_definition.xcconfig_relative_path}'.".yellow name = "#{target.attributes["name"]} [#{config_build_names.join(' - ')}]"
puts " - Use the `$(inherited)' flag, or" puts "\n[!] The target `#{name}' overrides the `#{key}' build setting defined in `#{@target_definition.xcconfig_relative_path}'.".yellow
puts " - Remove the build settings from the target." puts " - Use the `$(inherited)' flag, or"
puts " - Remove the build settings from the target."
end
end end
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment