Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

… silent.
  • Loading branch information...
commit 0d71f9e4c95a140232fddc48a3e829001aae83f0 1 parent d2dd1f9
@fabiopelosin fabiopelosin authored
Showing with 9 additions and 6 deletions.
  1. +9 −6 lib/cocoapods/installer/user_project_integrator.rb
View
15 lib/cocoapods/installer/user_project_integrator.rb
@@ -6,7 +6,6 @@
module Pod
class Installer
-
class UserProjectIntegrator
include Pod::Config::Mixin
@@ -58,6 +57,8 @@ def create_workspace!
end
class TargetIntegrator
+ include Pod::Config::Mixin
+
attr_reader :target_definition
def initialize(target_definition)
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.