Commit c2cab609 authored by Keith Smiley's avatar Keith Smiley Committed by Samuel Giddins

Only add resources and frameworks build phase when needed

This changes the project integrator to only add build phases to the
user's project if there are resources of frameworks that will be copied
in that phase.
parent efeff72e
......@@ -303,11 +303,11 @@ module Pod
output_extension = TargetIntegrator.output_extension_for_resource(File.extname(input_path))
File.join(base_path, File.basename(input_path, File.extname(input_path)) + output_extension)
end.uniq
end
TargetIntegrator.validate_input_output_path_limit(input_paths, output_paths)
TargetIntegrator.create_or_update_copy_resources_script_phase_to_target(native_target, script_path, input_paths, output_paths)
end
end
end
# Removes the embed frameworks build phase from embedded targets
#
......@@ -337,11 +337,11 @@ module Pod
unless framework_paths_by_config.all?(&:empty?)
input_paths = [target.embed_frameworks_script_relative_path, *framework_paths_by_config.map { |fw| [fw[:input_path], fw[:dsym_input_path]] }.flatten.compact]
output_paths = framework_paths_by_config.map { |fw| [fw[:output_path], fw[:dsym_output_path]] }.flatten.compact.uniq
end
TargetIntegrator.validate_input_output_path_limit(input_paths, output_paths)
TargetIntegrator.create_or_update_embed_frameworks_script_phase_to_target(native_target, script_path, input_paths, output_paths)
end
end
end
# Updates all target script phases for the current target, including creating or updating, deleting
# and re-ordering.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment