class Pod::Installer::Xcode::PodsProjectGenerator

Public Instance Methods

install_libraries() click to toggle source

override

Manually checked the 1.5.3/ 1.5.2/ 1.5.1/ 1.5.0, they are all the same. So it's safe.

# File lib/cocoapods-fix-module/patch1.5.rb, line 116
def install_libraries
  UI.message '- Installing targets' do
    umbrella_headers_by_dir = pod_targets.map do |pod_target|
      ## ---- modified
      # next unless pod_target.should_build? && pod_target.defines_module?
      next unless pod_target.defines_module?
      next unless (pod_target.should_build? || pod_target.should_generate_module_map_for_a_pod_should_not_build? )
      ## ---- modifed end
      #
      # contentx below is copied from original method

      pod_target.umbrella_header_path
    end.compact.group_by(&:dirname)

    pod_targets.sort_by(&:name).each do |pod_target|
      target_installer = PodTargetInstaller.new(sandbox, pod_target)
      target_installer.umbrella_headers_by_dir = umbrella_headers_by_dir
      target_installer.install!
    end

    aggregate_targets.sort_by(&:name).each do |target|
      target_installer = AggregateTargetInstaller.new(sandbox, target)
      target_installer.install!
    end

    add_system_framework_dependencies
  end
end