diff --git a/lib/fastlane/plugin/versioning/actions/increment_version_number_in_xcodeproj.rb b/lib/fastlane/plugin/versioning/actions/increment_version_number_in_xcodeproj.rb index 03b85ad..49918f8 100644 --- a/lib/fastlane/plugin/versioning/actions/increment_version_number_in_xcodeproj.rb +++ b/lib/fastlane/plugin/versioning/actions/increment_version_number_in_xcodeproj.rb @@ -85,9 +85,9 @@ def self.set_version_number_using_target(params, 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? + UI.message "updating #{config.name} to version #{next_version_number}" + config.build_settings["MARKETING_VERSION"] = next_version_number + end unless target.nil? end