Class: Pod::Installer::Xcode::PodsProjectGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-fix-module/patch.rb,
lib/cocoapods-fix-module/patch1.5.rb,
lib/cocoapods-fix-module/patch1.5.rb

Defined Under Namespace

Classes: PodTargetInstaller

Instance Method Summary collapse

Instance Method Details

#install_librariesObject

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.



96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# File 'lib/cocoapods-fix-module/patch1.5.rb', line 96

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.send(:uses_modular_headers?) )
      ## ---- 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