Skip to content

Commit

Permalink
[UserProjectIntegrator] Don't warn about overridden build settings if…
Browse files Browse the repository at this point in the history
… silent.
  • Loading branch information
fabiopelosin committed Aug 22, 2012
1 parent d2dd1f9 commit 0d71f9e
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions lib/cocoapods/installer/user_project_integrator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

module Pod
class Installer

class UserProjectIntegrator
include Pod::Config::Mixin

Expand Down Expand Up @@ -58,6 +57,8 @@ def create_workspace!
end

class TargetIntegrator
include Pod::Config::Mixin

attr_reader :target_definition

def initialize(target_definition)
Expand Down Expand Up @@ -151,11 +152,13 @@ def add_xcconfig_base_configuration
config.base_configuration = xcconfig
end

config_build_names_by_overriden_key.each do |key, config_build_names|
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 " - Use the `$(inherited)' flag, or"
puts " - Remove the build settings from the target."
unless config.silent?
config_build_names_by_overriden_key.each do |key, config_build_names|
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 " - Use the `$(inherited)' flag, or"
puts " - Remove the build settings from the target."
end
end
end
end
Expand Down

0 comments on commit 0d71f9e

Please sign in to comment.