lib/pod_builder/command/build.rb in pod-builder-0.3.2 vs lib/pod_builder/command/build.rb in pod-builder-0.3.3
- old
+ new
@@ -28,10 +28,12 @@
argument_pods = buildable_items.map(&:root_name)
end
argument_pods.select! { |x| all_buildable_items.map(&:root_name).include?(x) }
argument_pods.uniq!
+
+ prebuilt_pods_to_install = prebuilt_items.select { |x| argument_pods.include?(x.root_name) }
Podfile.restore_podfile_clean(all_buildable_items)
restore_file_error = Podfile.restore_file_sanity_check
@@ -85,15 +87,15 @@
GenerateLFS::call(nil)
Podspec::generate(analyzer)
builded_pods = podfiles_items.flatten
builded_pods_and_deps = add_dependencies(builded_pods, all_buildable_items).select { |x| !x.is_prebuilt }
- Podfile::write_restorable(builded_pods_and_deps + prebuilt_items, all_buildable_items, analyzer)
+ Podfile::write_restorable(builded_pods_and_deps + prebuilt_pods_to_install, all_buildable_items, analyzer)
if !options.has_key?(:skip_prebuild_update)
Podfile::write_prebuilt(all_buildable_items, analyzer)
end
- Podfile::deintegrate_install
+ Podfile::install
sanity_checks(options)
if (restore_file_error = restore_file_error) && Configuration.restore_enabled
puts "\n\n⚠️ Podfile.restore was found invalid and was overwritten. Error:\n #{restore_file_error}".red