Class: Pod::Installer::SandboxHeaderPathsInstaller
- Inherits:
-
Object
- Object
- Pod::Installer::SandboxHeaderPathsInstaller
- Defined in:
- lib/cocoapods/installer/sandbox_header_paths_installer.rb
Overview
Adds all the search paths into the sandbox HeaderStore and each pod target’s HeaderStore.
Instance Attribute Summary collapse
-
#pod_targets ⇒ Array<PodTarget>
readonly
The list of pod targets to analyze.
-
#sandbox ⇒ Sandbox
readonly
The sandbox to use for this analysis.
Instance Method Summary collapse
-
#initialize(sandbox, pod_targets) ⇒ SandboxHeaderPathsInstaller
constructor
Initialize a new instance.
- #install! ⇒ Object
Constructor Details
#initialize(sandbox, pod_targets) ⇒ SandboxHeaderPathsInstaller
Initialize a new instance
19 20 21 22 |
# File 'lib/cocoapods/installer/sandbox_header_paths_installer.rb', line 19 def initialize(sandbox, pod_targets) @pod_targets = pod_targets @sandbox = sandbox end |
Instance Attribute Details
#pod_targets ⇒ Array<PodTarget> (readonly)
Returns The list of pod targets to analyze.
12 13 14 |
# File 'lib/cocoapods/installer/sandbox_header_paths_installer.rb', line 12 def pod_targets @pod_targets end |
#sandbox ⇒ Sandbox (readonly)
Returns The sandbox to use for this analysis.
8 9 10 |
# File 'lib/cocoapods/installer/sandbox_header_paths_installer.rb', line 8 def sandbox @sandbox end |
Instance Method Details
#install! ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/cocoapods/installer/sandbox_header_paths_installer.rb', line 24 def install! # Link all pod target header search paths into the HeaderStore. pod_targets.each do |pod_target| next if pod_target.build_as_framework? && pod_target.should_build? install_target(pod_target) end end |