lib/cocoapods-packager/builder.rb in ty-cocoapods-packager-1.5.9 vs lib/cocoapods-packager/builder.rb in ty-cocoapods-packager-1.5.10
- old
+ new
@@ -218,10 +218,10 @@
spec_resource_bundles.map do |bundle, resources|
UI.puts("copy resource bundle #{bundle}.bundle to Assets")
bundle_path = "#{assets_path}/#{bundle}.bundle/"
`mkdir #{bundle_path}`
- resources.map { |resource| `cp #{resource} #{bundle_path}` }
+ resources.map { |resource| `cp -a #{resource} #{bundle_path}` }
end
puts "copy #{spec_resources.count} resource(s) to Assets" if spec_resources.count != 0
spec_resources.map do |resource|
`cp #{resource} #{assets_path}`