Skip to content

Commit

Permalink
Fix increment_build_number_in_xcodeproj
Browse files Browse the repository at this point in the history
  • Loading branch information
skiritsa committed Dec 29, 2021
1 parent 9dccc31 commit ec07ec3
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,16 @@ def self.set_build_number_using_target(params, next_build_number)
target = project.targets[0] if target.nil?
end

target.build_configurations.each do |config|
if params[:build_configuration_name]
config = target.build_configurations.detect { |c| c.name == params[:build_configuration_name]}
UI.message "updating #{config.name} to build #{next_build_number}"
config.build_settings["CURRENT_PROJECT_VERSION"] = next_build_number
else
target.build_configurations.each do |config|
UI.message "updating #{config.name} to build #{next_build_number}"
config.build_settings["CURRENT_PROJECT_VERSION"] = next_build_number
end unless target.nil?
end

project.save
end
Expand Down

0 comments on commit ec07ec3

Please sign in to comment.