Skip to content

Commit

Permalink
Fix increment_version_number_in_xcodeproj
Browse files Browse the repository at this point in the history
  • Loading branch information
skiritsa committed Dec 29, 2021
1 parent ff089f0 commit 9dccc31
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,17 @@ def self.set_version_number_using_target(params, next_version_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 version #{next_version_number}"
config.build_settings["MARKETING_VERSION"] = next_version_number
else
target.build_configurations.each do |config|
UI.message "updating #{config.name} to version #{next_version_number}"
config.build_settings["MARKETING_VERSION"] = next_version_number
end unless target.nil?
end


project.save
end
Expand Down

0 comments on commit 9dccc31

Please sign in to comment.