Class: Pod::PodTarget

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-hmap-prebuilt/pod_target.rb

Instance Method Summary collapse

Instance Method Details

#reset_header_search_with_relative_hmap_path(hmap_path) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/cocoapods-hmap-prebuilt/pod_target.rb', line 7

def reset_header_search_with_relative_hmap_path(hmap_path)
  if build_settings.instance_of?(Hash)
    build_settings.each do |config_name, setting|
      config_file = setting.xcconfig
      config_file.reset_header_search_with_relative_hmap_path(hmap_path)
      # https://github.com/CocoaPods/CocoaPods/issues/1216
      config_file.set_use_hmap(false)
      config_path = xcconfig_path(config_name)
      config_file.save_as(config_path)
    end
  elsif build_settings.instance_of?(BuildSettings::PodTargetSettings)
    config_file = build_settings.xcconfig
    config_file.reset_header_search_with_relative_hmap_path(hmap_path)
    # https://github.com/CocoaPods/CocoaPods/issues/1216
    config_file.set_use_hmap(false)
    config_path = xcconfig_path
    config_file.save_as(config_path)
  else
    puts 'Unknown build settings'.red
  end
end