Module: XCCache::SPM::Package::UmbrellaXCConfigsMixin

Included in:
Umbrella
Defined in:
lib/xccache/spm/pkg/umbrella/xcconfigs.rb

Instance Method Summary collapse

Instance Method Details

#gen_xcconfigsObject



5
6
7
8
9
10
11
12
13
# File 'lib/xccache/spm/pkg/umbrella/xcconfigs.rb', line 5

def gen_xcconfigs
  UI.section("Generating xcconfigs") do
    macros_config_by_targets.each do |target, hash|
      xcconfig_path = config.spm_xcconfig_dir / "#{target}.xcconfig"
      UI.message("XCConfig of target #{target} at: #{xcconfig_path}")
      Xcodeproj::Config.new(hash).save_as(xcconfig_path)
    end
  end
end