class Pod::Target::BuildSettings::PodTargetSettings
A subclass that generates build settings for a {PodTarget}
Attributes
test_spec[R]
@return [Specification]
The test specification these build settings are for or `nil`.
test_xcconfig[R]
@return [Boolean]
whether settings are being generated for a test bundle
test_xcconfig?[R]
@return [Boolean]
whether settings are being generated for a test bundle
Public Class Methods
build_settings_names()
click to toggle source
@see BuildSettings.build_settings_names
# File lib/cocoapods/target/build_settings.rb, line 453 def self.build_settings_names @build_settings_names | BuildSettings.build_settings_names end
new(target, test_spec = nil)
click to toggle source
Initializes a new instance
@param [PodTarget] target
see {#target}
@param [Specification] test_spec
see {#test_spec}
Calls superclass method
Pod::Target::BuildSettings::new
# File lib/cocoapods/target/build_settings.rb, line 476 def initialize(target, test_spec = nil) super(target) @test_spec = test_spec @test_xcconfig = !test_spec.nil? end
Public Instance Methods
pod_target_xcconfig_values_by_consumer_by_key()
click to toggle source
Returns the pod_target_xcconfig
for the pod target and its spec consumers grouped by keys
@return [Hash{String,Hash{Target,String}]
# File lib/cocoapods/target/build_settings.rb, line 787 def pod_target_xcconfig_values_by_consumer_by_key spec_consumers.each_with_object({}) do |spec_consumer, hash| spec_consumer.pod_target_xcconfig.each do |k, v| (hash[k] ||= {})[spec_consumer] = v end end end
requires_objc_linker_flag?()
click to toggle source
@return [Boolean] whether the `-ObjC` linker flag is required.
@note this is only true when generating build settings for a test bundle
# File lib/cocoapods/target/build_settings.rb, line 730 def requires_objc_linker_flag? test_xcconfig? end