lib/cocoapods/installer/pods_project_integrator/pod_target_integrator.rb
def add_copy_resources_script_phase(native_target)
        test_type = target.test_type_for_product_type(native_target.symbol_type)
        script_path = "${PODS_ROOT}/#{target.copy_resources_script_path_for_test_type(test_type).relative_path_from(target.sandbox.root)}"
        resource_paths = target.all_test_dependent_targets.flat_map(&:resource_paths)
        input_paths = []
        output_paths = []
        unless resource_paths.empty?
          input_paths = [script_path, *resource_paths.flatten.uniq]
          output_paths = ['${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}']
        end
        Pod::Installer::UserProjectIntegrator::TargetIntegrator.add_copy_resources_script_phase_to_target(native_target, script_path, input_paths, output_paths)
      end
# Find or create a 'Copy Pods Resources' build phase
#
# @return [void]
#
Find or create a 'Copy Pods Resources' build phase
Find or create a ' Copy Pods Resources ' build phase
def add_copy_resources_script_phase(native_target)
        test_type = target.test_type_for_product_type(native_target.symbol_type)
        script_path = "${PODS_ROOT}/#{target.copy_resources_script_path_for_test_type(test_type).relative_path_from(target.sandbox.root)}"
        resource_paths = target.all_test_dependent_targets.flat_map(&:resource_paths)
        input_paths = []
        output_paths = []
        unless resource_paths.empty?
          input_paths = [script_path, *resource_paths.flatten.uniq]
          output_paths = ['${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}']
        end
        Pod::Installer::UserProjectIntegrator::TargetIntegrator.add_copy_resources_script_phase_to_target(native_target, script_path, input_paths, output_paths)
      end
def add_copy_resources_script_phase ( native_target ) test_type = target . test_type_for_product_type ( native_target . symbol_type ) script_path = "${PODS_ROOT}/#{target.copy_resources_script_path_for_test_type(test_type).relative_path_from(target.sandbox.root)}" resource_paths = target . all_test_dependent_targets . flat_map ( & :resource_paths ) input_paths = [ ] output_paths = [ ] unless resource_paths . empty? input_paths = [ script_path , * resource_paths . flatten . uniq ] output_paths = [ '${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}' ] end Pod :: Installer :: UserProjectIntegrator :: TargetIntegrator . add_copy_resources_script_phase_to_target ( native_target , script_path , input_paths , output_paths ) end
Find or create a 'Copy Pods Resources' build phase
Find or create a ' Copy Pods Resources ' build phase
None
void
native_target