class Pod::Target::BuildSettings::AggregateTargetSettings

A subclass that generates build settings for a `PodTarget`

Constants

EMBED_STANDARD_LIBRARIES_MINIMUM_VERSION

Attributes

configuration_name[R]

@return [Symbol]

The build configuration these settings will be used for

Public Class Methods

build_settings_names() click to toggle source

@see BuildSettings.build_settings_names

# File lib/cocoapods/target/build_settings.rb, line 1101
def self.build_settings_names
  @build_settings_names | BuildSettings.build_settings_names
end
new(target, configuration_name, configuration: nil) click to toggle source

Initializes a new instance

@param [AggregateTarget] target

see {#target}

@param [Symbol] configuration_name

see {#configuration_name}
Calls superclass method Pod::Target::BuildSettings::new
# File lib/cocoapods/target/build_settings.rb, line 1117
def initialize(target, configuration_name, configuration: nil)
  super(target)
  @configuration_name = configuration_name
  (@configuration = configuration) || raise("No configuration for #{self}.")
end

Public Instance Methods

other_swift_flags_without_swift?() click to toggle source

@see BuildSettings#other_swift_flags_without_swift?

# File lib/cocoapods/target/build_settings.rb, line 1239
def other_swift_flags_without_swift?
  module_map_files.any?
end
user_target_xcconfig_values_by_consumer_by_key() click to toggle source

Returns the user_target_xcconfig for all pod targets and their spec consumers grouped by keys

@return [Hash{String,Hash{Target,String}]

# File lib/cocoapods/target/build_settings.rb, line 1354
def user_target_xcconfig_values_by_consumer_by_key
  targets = (pod_targets + target.search_paths_aggregate_targets.flat_map(&:pod_targets)).uniq
  targets.each_with_object({}) do |target, hash|
    target.spec_consumers.each do |spec_consumer|
      spec_consumer.user_target_xcconfig.each do |k, v|
        # TODO: Need to decide how we are going to ensure settings like these
        # are always excluded from the user's project.
        #
        # See https://github.com/CocoaPods/CocoaPods/issues/1216
        next if k == 'USE_HEADERMAP'
        (hash[k] ||= {})[spec_consumer] = v
      end
    end
  end
end