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,6 +152,7 @@ module Pod ...@@ -151,6 +152,7 @@ module Pod
config.base_configuration = xcconfig config.base_configuration = xcconfig
end end
unless config.silent?
config_build_names_by_overriden_key.each do |key, config_build_names| config_build_names_by_overriden_key.each do |key, config_build_names|
name = "#{target.attributes["name"]} [#{config_build_names.join(' - ')}]" name = "#{target.attributes["name"]} [#{config_build_names.join(' - ')}]"
puts "\n[!] The target `#{name}' overrides the `#{key}' build setting defined in `#{@target_definition.xcconfig_relative_path}'.".yellow puts "\n[!] The target `#{name}' overrides the `#{key}' build setting defined in `#{@target_definition.xcconfig_relative_path}'.".yellow
...@@ -159,6 +161,7 @@ module Pod ...@@ -159,6 +161,7 @@ module Pod
end end
end end
end end
end
def add_pods_library def add_pods_library
group = user_project.group("Frameworks") || user_project.main_group group = user_project.group("Frameworks") || user_project.main_group
......
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