lib/cocoapods-ppbuild/Integration.rb in cocoapods-ppbuild-0.0.3 vs lib/cocoapods-ppbuild/Integration.rb in cocoapods-ppbuild-0.0.4
- old
+ new
@@ -77,18 +77,22 @@
target_folder.mkpath
walk(real_file_folder) do |child|
source = child
+
# only make symlink to file and `.framework` folder
if child.directory?
if [".framework"].include? child.extname
mirror_with_symlink(source, real_file_folder, target_folder, true)
next false # return false means don't go deeper
elsif [".dSYM"].include? child.extname
mirror_with_symlink(source, real_file_folder, target_folder, false)
next false # return false means don't go deeper
+ elsif [".bundle"].include? child.extname
+ mirror_with_symlink(source, real_file_folder, target_folder, false)
+ next false
else
next true
end
elsif child.file?
mirror_with_symlink(source, real_file_folder, target_folder, false)
@@ -103,9 +107,11 @@
hash = Prebuild::Passer.resources_to_copy_for_static_framework || {}
path_objects = hash[name]
if path_objects != nil
path_objects.each do |object|
if object.real_file_path != nil
+ real_path = Pathname.new(object.target_file_path)
+ real_path.rmtree if real_path.exist?
make_link(object.real_file_path, object.target_file_path, false)
end
end
end
end # of for each
\ No newline at end of file