Commit 8091852c authored by Olivier Halligon's avatar Olivier Halligon Committed by AliSoftware

[xcassets] Only add resources to Copy Phase if not already present

parent 9cca4f91
......@@ -155,15 +155,17 @@ module Pod
UI.puts " - Adding #{resource_path.basename} to targets #{native_targets.map(&:name)}"
native_targets.each do |user_target|
# TODO: Only add file (and set dirty=trye) if file not already added to target
unless user_target.resources_build_phase.include?(file_ref)
user_target.add_resources([file_ref])
dirty = true
end
end
end
end
# TODO: Remove code in FileReferencesInstaller#add_resource that adds resources to the Pods.xcodeproj
# TODO: Remove Pods-resources.sh (completely or partially?)
UI.puts "==> User project dirty? #{dirty.inspect}"
dirty
end
......
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