lib/cocoapods-ppbuild/Prebuild.rb in cocoapods-ppbuild-1.0.4 vs lib/cocoapods-ppbuild/Prebuild.rb in cocoapods-ppbuild-1.0.5

- old
+ new

@@ -112,16 +112,15 @@ # build! Pod::UI.puts "Prebuild frameworks (total #{targets.count})" Pod::Prebuild.remove_build_dir(sandbox_path) targets.each do |target| + output_path = sandbox.framework_folder_path_for_target_name(target.name) + output_path.rmtree if output_path.exist? if !target.should_build? UI.puts "Prebuilding #{target.label}" next end - - output_path = sandbox.framework_folder_path_for_target_name(target.name) - output_path.rmtree if output_path.exist? output_path.mkpath unless output_path.exist? Pod::Prebuild.build(sandbox_path, target, output_path, bitcode_enabled, Podfile::DSL.custom_build_options, Podfile::DSL.custom_build_options_simulator) # save the resource paths for later installing,动态库需要将frameworkwork中资源链接到pod上 if target.static_framework? and !target.resource_paths.empty? \ No newline at end of file