lib/cocoapods-binary/Integration.rb in cocoapods-binary-0.2 vs lib/cocoapods-binary/Integration.rb in cocoapods-binary-0.2.1
- old
+ new
@@ -47,15 +47,12 @@
def remove_target_files_if_needed
changes = Pod::Prebuild.framework_changes
updated_names = []
if changes == nil
- puts "aaaaa"
updated_names = PrebuildSandbox.from_standard_sandbox(self.sandbox).exsited_framework_names
else
- puts "bbbbb"
- puts changes
added = changes[:added] || []
changed = changes[:changed] || []
deleted = changes[:removed] || []
updated_names = added + changed + deleted
end
@@ -65,19 +62,20 @@
next if self.sandbox.local?(root_name)
# delete the cached files
target_path = self.sandbox.pod_dir(root_name)
target_path.rmtree if target_path.exist?
+
+ support_path = sandbox.target_support_files_dir(root_name)
+ support_path.rmtree if support_path.exist?
end
end
# Modify specification to use only the prebuild framework after analyzing
old_method2 = instance_method(:resolve_dependencies)
define_method(:resolve_dependencies) do
-
- puts "ddddddddd"
# Remove the old target files, else it will not notice file changes
self.remove_target_files_if_needed
old_method2.bind(self).()