lib/cocoapods/installer/user_project_integrator/target_integrator.rb
# Adds spec libraries to the frameworks build phase of the
# {TargetDefinition} integration libraries. Adds a file reference to
# the library of the {TargetDefinition} and adds it to the frameworks
# build phase of the targets.
#
# @return [void]
#
Adds spec libraries to the frameworks build phase of the
{TargetDefinition} integration libraries. Adds a file reference to
the library of the {TargetDefinition} and adds it to the frameworks
build phase of the targets.
Adds spec libraries to the frameworks build phase of the { TargetDefinition } integration libraries . Adds a file reference to the library of the { TargetDefinition } and adds it to the frameworks build phase of the targets .
def add_pods_library
          frameworks = user_project.frameworks_group
          native_targets_to_integrate.each do |native_target|
            library = frameworks.files.select { |f| f.path == target.product_name }.first ||
              frameworks.new_product_ref_for_target(target.name, :static_library)
            unless native_target.frameworks_build_phase.files_references.include?(library)
              native_target.frameworks_build_phase.add_file_reference(library)
            end
          end
        end
def add_pods_library frameworks = user_project . frameworks_group native_targets_to_integrate . each do | native_target | library = frameworks . files . select { | f | f . path == target . product_name } . first || frameworks . new_product_ref_for_target ( target . name , :static_library ) unless native_target . frameworks_build_phase . files_references . include? ( library ) native_target . frameworks_build_phase . add_file_reference ( library ) end end end
Adds spec libraries to the frameworks build phase of the
{TargetDefinition} integration libraries.
Adds spec libraries to the frameworks build phase of the { TargetDefinition } integration libraries .
None
void