Class: Pod::DyInstaller::Xcode::PodsProjectGenerator::AggregateTargetInstaller

Inherits:
TargetInstaller
  • Object
show all
Defined in:
lib/pod/installer/xcode/pods_project_generator/aggregate_target_installer.rb

Overview

Creates the targets which aggregate the Pods libraries in the Pods project and the relative support files.

Instance Attribute Summary

Attributes inherited from TargetInstaller

#sandbox, #target

Instance Method Summary collapse

Methods inherited from TargetInstaller

#initialize

Constructor Details

This class inherits a constructor from Pod::DyInstaller::Xcode::PodsProjectGenerator::TargetInstaller

Instance Method Details

#install!void

This method returns an undefined value.

Creates the target in the Pods project and the relative support files.



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
# File 'lib/pod/installer/xcode/pods_project_generator/aggregate_target_installer.rb', line 13

def install!
  UI.message "- Installing target `#{target.name}` #{target.platform}" do
    add_target
    create_support_files_dir
    create_support_files_group
    create_xcconfig_file
    if target.requires_frameworks?
      create_info_plist_file(target.info_plist_path, native_target, target.version, target.platform)
      create_module_map
      create_umbrella_header
    elsif target.uses_swift?
      create_module_map
      create_umbrella_header
    end
    # Because embedded targets live in their host target, CocoaPods
    # copies all of the embedded target's pod_targets to its host
    # targets. Having this script for the embedded target would
    # cause an App Store rejection because frameworks cannot be
    # embedded in embedded targets.
    #
    create_embed_frameworks_script unless target.requires_host_target?
    create_bridge_support_file
    create_copy_resources_script
    create_acknowledgements
    create_dummy_source
  end
end