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

Inherits:
TargetInstaller
  • Object
show all
Defined in:
lib/cocoapods-kz/native/pod_target_installer.rb

Instance Method Summary collapse

Instance Method Details

#install!Object



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/cocoapods-kz/native/pod_target_installer.rb', line 11

def install!
  target_installation_result = origin_install!
  if KZ::KZGlobalHelper.instance.kz_pod_enable
    kz_pod_target = self.target.weakRef_kz_pod_target

    if self.target.should_build?
      unless self.target.name.start_with?('Pods-')
        KZ::KZGlobalHelper.instance.kz_generator.add_framework_generator_build_phase(target_installation_result.native_target)
      end

      if kz_pod_target&.is_dev_pod
        KZ::KZGlobalHelper.instance.kz_generator.add_flexlib_xml_build_rules(self.project, target_installation_result.native_target)
      end
    end

    if kz_pod_target&.origin_should_build?
      if kz_pod_target.force_load
        KZ::KZGlobalHelper.instance.kz_generator.add_force_load_exe_path_build_phase(target_installation_result.native_target, kz_pod_target.force_load_info)
      end
    end

    if kz_pod_target && !kz_pod_target.use_modulemap
      target_installation_result.native_target.build_configurations.each do |c|
        c.build_settings['DEFINES_MODULE'] = 'NO'
      end
    end
  end

  target_installation_result
end

#origin_install!Object



10
# File 'lib/cocoapods-kz/native/pod_target_installer.rb', line 10

alias_method :origin_install!, :install!