class Pod::Installer::SandboxHeaderPathsInstaller
Adds all the search paths into the sandbox HeaderStore and each pod target’s HeaderStore.
Attributes
pod_targets[R]
@return [Array<PodTarget>] The list of pod targets to analyze.
sandbox[R]
@return [Sandbox] The sandbox to use for this analysis.
Public Class Methods
new(sandbox, pod_targets)
click to toggle source
Initialize a new instance
@param [Sandbox] sandbox @see sandbox
@param [Array<PodTarget>] pod_targets
@see pod_targets
# File lib/cocoapods/installer/sandbox_header_paths_installer.rb, line 19 def initialize(sandbox, pod_targets) @pod_targets = pod_targets @sandbox = sandbox end
Public Instance Methods
install!()
click to toggle source
# 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
Private Instance Methods
install_target(pod_target)
click to toggle source
# File lib/cocoapods/installer/sandbox_header_paths_installer.rb, line 34 def install_target(pod_target) pod_target_header_mappings = pod_target.header_mappings_by_file_accessor.values public_header_mappings = pod_target.public_header_mappings_by_file_accessor.values added_build_headers = !pod_target_header_mappings.all?(&:empty?) added_public_headers = !public_header_mappings.all?(&:empty?) pod_target.build_headers.add_search_path(pod_target.headers_sandbox, pod_target.platform) if added_build_headers sandbox.public_headers.add_search_path(pod_target.headers_sandbox, pod_target.platform) if added_public_headers end