lib/cocoapods/installer/pods_project_integrator/pod_target_integrator.rb
# Find or create a 'Embed Pods Frameworks' Copy Files Build Phase
#
# @return [void]
#
Find or create a 'Embed Pods Frameworks' Copy Files Build Phase
Find or create a ' Embed Pods Frameworks ' Copy Files Build Phase
def add_embed_frameworks_script_phase(native_target)
        test_type = target.test_type_for_product_type(native_target.symbol_type)
        script_path = "${PODS_ROOT}/#{target.embed_frameworks_script_path_for_test_type(test_type).relative_path_from(target.sandbox.root)}"
        framework_paths = target.all_test_dependent_targets.flat_map(&:framework_paths)
        input_paths = []
        output_paths = []
        unless framework_paths.empty?
          input_paths = [script_path, *framework_paths.map { |fw| [fw[:input_path], fw[:dsym_input_path]] }.flatten.compact]
          output_paths = framework_paths.map { |fw| [fw[:output_path], fw[:dsym_output_path]] }.flatten.compact
        end
        Pod::Installer::UserProjectIntegrator::TargetIntegrator.add_embed_frameworks_script_phase_to_target(native_target, script_path, input_paths, output_paths)
      end
def add_embed_frameworks_script_phase ( native_target ) test_type = target . test_type_for_product_type ( native_target . symbol_type ) script_path = "${PODS_ROOT}/#{target.embed_frameworks_script_path_for_test_type(test_type).relative_path_from(target.sandbox.root)}" framework_paths = target . all_test_dependent_targets . flat_map ( & :framework_paths ) input_paths = [ ] output_paths = [ ] unless framework_paths . empty? input_paths = [ script_path , * framework_paths . map { | fw | [ fw [ :input_path ] , fw [ :dsym_input_path ] ] } . flatten . compact ] output_paths = framework_paths . map { | fw | [ fw [ :output_path ] , fw [ :dsym_output_path ] ] } . flatten . compact end Pod :: Installer :: UserProjectIntegrator :: TargetIntegrator . add_embed_frameworks_script_phase_to_target ( native_target , script_path , input_paths , output_paths ) end
Find or create a 'Embed Pods Frameworks' Copy Files Build Phase
Find or create a ' Embed Pods Frameworks ' Copy Files Build Phase
None
void
native_target