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
# 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 && 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

    kz_pod_target = self.target.weakRef_kz_pod_target
    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
  target_installation_result
end

#origin_install!Object



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

alias_method :origin_install!, :install!