Class: SubPod::TargetIntegrator

Inherits:
Pod::Installer::UserProjectIntegrator::TargetIntegrator
  • Object
show all
Defined in:
lib/subpod/target_integrator.rb

Instance Method Summary collapse

Instance Method Details

#add_xcconfig_base_configurationObject



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/subpod/target_integrator.rb', line 3

def add_xcconfig_base_configuration
  xcconfig = pods_group.files.select { |f|
    f.path == target.xcconfig_relative_path
  }.first || pods_group.new_file(target.xcconfig_relative_path)

  native_targets.each do |native_target|
    check_overridden_build_settings(target.xcconfig, native_target)
    native_target.build_configurations.each do |config|
      config.base_configuration_reference = xcconfig
    end
  end
end

#pods_groupObject



16
17
18
# File 'lib/subpod/target_integrator.rb', line 16

def pods_group
  user_project['Pods'] || user_project.new_group('Pods')
end