Class: Pod::Installer::PodTargetInstaller
- Inherits:
-
TargetInstaller
- Object
- TargetInstaller
- Pod::Installer::PodTargetInstaller
- Defined in:
- lib/cocoapods/installer/target_installer/pod_target_installer.rb
Overview
Creates the target for the Pods libraries in the Pods project and the relative support files.
Instance Attribute Summary
Attributes inherited from TargetInstaller
Instance Method Summary collapse
-
#install! ⇒ void
Creates the target in the Pods project and the relative support files.
Methods inherited from TargetInstaller
Constructor Details
This class inherits a constructor from Pod::Installer::TargetInstaller
Instance Method Details
#install! ⇒ void
This method returns an undefined value.
Creates the target in the Pods project and the relative support files.
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 |
# File 'lib/cocoapods/installer/target_installer/pod_target_installer.rb', line 11 def install! unless target.should_build? add_resources_bundle_targets return end UI. "- Installing target `#{target.name}` #{target.platform}" do add_target create_support_files_dir add_resources_bundle_targets add_files_to_build_phases create_xcconfig_file if target.requires_frameworks? create_info_plist_file create_module_map do |generator| generator.private_headers += target.file_accessors.flat_map(&:private_headers).map(&:basename) end create_umbrella_header do |generator| generator.imports += target.file_accessors.flat_map(&:public_headers).map(&:basename) end end create_prefix_header create_dummy_source end end |