Commit 6b0f9bb1 authored by Diego Torres's avatar Diego Torres

[AggregateTargetInstaller] Unique resources passed to the script generator.

parent be924863
......@@ -120,7 +120,7 @@ module Pod
file_accessors = library_targets.select { |t| t.include_in_build_config?(config) }.flat_map(&:file_accessors)
resource_paths = file_accessors.flat_map { |accessor| accessor.resources.flat_map { |res| res.relative_path_from(project.path.dirname) } }
resource_bundles = file_accessors.flat_map { |accessor| accessor.resource_bundles.keys.map { |name| "${BUILT_PRODUCTS_DIR}/#{name.shellescape}.bundle" } }
resources_by_config[config] = resource_paths + resource_bundles
resources_by_config[config] = (resource_paths + resource_bundles).uniq
resources_by_config[config] << bridge_support_file if bridge_support_file
end
generator = Generator::CopyResourcesScript.new(resources_by_config, target.platform)
......
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