fastlane/lib/fastlane/actions/create_xcframework.rb in fastlane-2.177.0 vs fastlane/lib/fastlane/actions/create_xcframework.rb in fastlane-2.178.0

- old
+ new

@@ -12,9 +12,14 @@ create_command << params[:frameworks].map { |framework| ['-framework', "\"#{framework}\""] }.flatten if params[:frameworks] create_command << params[:libraries].map { |library, headers| ['-library', "\"#{library}\""] + (headers.empty? ? [] : ['-headers', "\"#{headers}\""]) } if params[:libraries] create_command << ['-output', "\"#{params[:output]}\""] create_command << ['-allow-internal-distribution'] if params[:allow_internal_distribution] + if File.directory?(params[:output]) + UI.message("Deleting existing: #{params[:output]}") + FileUtils.remove_dir(params[:output]) + end + Actions.lane_context[SharedValues::XCFRAMEWORK_PATH] = params[:output] sh(create_command) end