lib/cocoapods/installer/user_project_integrator.rb
def integrate_user_targets
        target_integrators = targets_to_integrate.sort_by(&:name).map do |target|
          TargetIntegrator.new(target)
        end

        Config.instance.with_changes(:silent => true) do
          deintegrator = Deintegrator.new
          all_project_targets = user_projects.flat_map(&:native_targets).uniq
          all_native_targets = targets_to_integrate.flat_map(&:user_targets).uniq
          targets_to_deintegrate = all_project_targets - all_native_targets
          targets_to_deintegrate.each do |target|
            deintegrator.deintegrate_target(target)
          end
        end

        target_integrators.each(&:integrate!)
      end
# Integrates the targets of the user projects with the libraries
# generated from the {Podfile}.
#
# @note   {TargetDefinition} without dependencies are skipped prevent
#         creating empty libraries for targets definitions which are only
#         wrappers for others.
#
# @return [void]
#
Integrates the targets of the user projects with the libraries
generated from the {Podfile}.
Integrates the targets of the user projects with the libraries generated from the { Podfile } .
def integrate_user_targets
        target_integrators = targets_to_integrate.sort_by(&:name).map do |target|
          TargetIntegrator.new(target)
        end
        Config.instance.with_changes(:silent => true) do
          deintegrator = Deintegrator.new
          all_project_targets = user_projects.flat_map(&:native_targets).uniq
          all_native_targets = targets_to_integrate.flat_map(&:user_targets).uniq
          targets_to_deintegrate = all_project_targets - all_native_targets
          targets_to_deintegrate.each do |target|
            deintegrator.deintegrate_target(target)
          end
        end
        target_integrators.each(&:integrate!)
      end
def integrate_user_targets target_integrators = targets_to_integrate . sort_by ( & :name ) . map do | target | TargetIntegrator . new ( target ) end Config . instance . with_changes ( :silent => true ) do deintegrator = Deintegrator . new all_project_targets = user_projects . flat_map ( & :native_targets ) . uniq all_native_targets = targets_to_integrate . flat_map ( & :user_targets ) . uniq targets_to_deintegrate = all_project_targets - all_native_targets targets_to_deintegrate . each do | target | deintegrator . deintegrate_target ( target ) end end target_integrators . each ( & :integrate! ) end
Integrates the targets of the user projects with the libraries
generated from the {Podfile}.
Integrates the targets of the user projects with the libraries generated from the { Podfile } .
None
void
note
{TargetDefinition} without dependencies are skipped prevent creating empty libraries for targets definitions which are only wrappers for others.
{ TargetDefinition } without dependencies are skipped prevent creating empty libraries for targets definitions which are only wrappers for others .