lib/cocoapods/resolver.rb
# Identifies the specifications that should be installed.
#
# @return [Hash{TargetDefinition => Array<Specification>}] specs_by_target
#         the specifications that need to be installed grouped by target
#         definition.
#
Identifies the specifications that should be installed.
Identifies the specifications that should be installed .
def resolve
      @cached_sources  = SourcesManager.aggregate
      @cached_sets     = {}
      @cached_specs    = {}
      @specs_by_target = {}
      target_definitions = podfile.target_definitions.values.sort_by{ |td| td.name.to_s }
      target_definitions.each do |target|
        UI.section "Resolving dependencies for target `#{target.name}' (#{target.platform})" do
          @loaded_specs = []
          find_dependency_specs(podfile, target.dependencies, target)
          specs = cached_specs.values_at(*@loaded_specs).sort_by(&:name)
          specs_by_target[target] = specs
        end
      end
      cached_specs.values.sort_by(&:name)
      specs_by_target
    end
def resolve @cached_sources = SourcesManager . aggregate @cached_sets = { } @cached_specs = { } @specs_by_target = { } target_definitions = podfile . target_definitions . values . sort_by { | td | td . name . to_s } target_definitions . each do | target | UI . section "Resolving dependencies for target `#{target.name}' (#{target.platform})" do @loaded_specs = [ ] find_dependency_specs ( podfile , target . dependencies , target ) specs = cached_specs . values_at ( * @loaded_specs ) . sort_by ( & :name ) specs_by_target [ target ] = specs end end cached_specs . values . sort_by ( & :name ) specs_by_target end
Identifies the specifications that should be installed.
Identifies the specifications that should be installed .
specs_by_target the specifications that need to be installed grouped by target definition.
specs_by_target the specifications that need to be installed grouped by target definition .
Hash{TargetDefinition => Array<Specification>}