lib/cocoapods-binary/Prebuild.rb in cocoapods-binary-0.2 vs lib/cocoapods-binary/Prebuild.rb in cocoapods-binary-0.2.1

- old
+ new

@@ -25,11 +25,10 @@ def have_exact_prebuild_cache? # check if need build frameworks return false if local_manifest == nil changes = local_manifest.detect_changes_with_podfile(podfile) - puts changes Pod::Prebuild.framework_changes = changes # save the chagnes info for later stage added = changes[:added] || [] changed = changes[:changed] || [] unchanged = changes[:unchanged] || [] deleted = changes[:removed] || [] @@ -58,10 +57,11 @@ def prebuild_frameworks local_manifest = self.local_manifest sandbox_path = sandbox.root existed_framework_folder = sandbox.generate_framework_path + bitcode_enabled = Pod::Podfile::DSL.is_bitcode_enabled if local_manifest != nil changes = local_manifest.detect_changes_with_podfile(podfile) added = changes[:added] || [] @@ -91,13 +91,13 @@ targets = (added + changed + missing).map do |pod_name| self.pod_targets.find do |pod_target| pod_target.root_spec.name == pod_name end end - Pod::Prebuild.build(sandbox_path, existed_framework_folder, targets) + Pod::Prebuild.build(sandbox_path, existed_framework_folder, targets, bitcode_enabled) else - Pod::Prebuild.build(sandbox_path, existed_framework_folder, self.pod_targets) + Pod::Prebuild.build(sandbox_path, existed_framework_folder, self.pod_targets, bitcode_enabled) end # Remove useless files # only keep manifest.lock and framework folder to_remain_files = ["Manifest.lock", File.basename(existed_framework_folder)] \ No newline at end of file