class Pod::Installer::Xcode::PodsProjectGenerator::PodsProjectGeneratorResult
A simple container produced after a pod project generation is completed.
Attributes
project[R]
@return [Project] project
projects_by_pod_targets[R]
@return [Hash{Project => Array<PodTargets>}] Project
by pod targets map
target_installation_results[R]
@return [InstallationResults] target installation results
Public Class Methods
new(project, projects_by_pod_targets, target_installation_results)
click to toggle source
Initialize a new instance
@param [Project] project @see project
@param [Hash{Project => Array<PodTargets>}] projects_by_pod_targets
@see projects_by_pod_targets
@param [InstallationResults] target_installation_results
@see target_installation_results
# File lib/cocoapods/installer/xcode/pods_project_generator_result.rb, line 26 def initialize(project, projects_by_pod_targets, target_installation_results) @project = project @projects_by_pod_targets = projects_by_pod_targets @target_installation_results = target_installation_results end
Public Instance Methods
native_target_for_spec(spec)
click to toggle source
@param [Pod::Specification] spec
A spec which was included in the generated project
@return [Xcodeproj::PBXNativeTarget] the native target for the spec
# File lib/cocoapods/installer/xcode/pods_project_generator_result.rb, line 37 def native_target_for_spec(spec) installation_results_by_spec[spec.root].native_target_for_spec(spec) end
Private Instance Methods
installation_results_by_spec()
click to toggle source
# File lib/cocoapods/installer/xcode/pods_project_generator_result.rb, line 43 def installation_results_by_spec @target_installation_results_by_spec ||= begin target_installation_results.pod_target_installation_results.values.each_with_object({}) do |installation_results, hash| hash[installation_results.target.root_spec] = installation_results end end end