diff --git a/lib/fastlane/plugin/versioning/actions/increment_build_number_in_xcodeproj.rb b/lib/fastlane/plugin/versioning/actions/increment_build_number_in_xcodeproj.rb index b94a8b3..8055f69 100644 --- a/lib/fastlane/plugin/versioning/actions/increment_build_number_in_xcodeproj.rb +++ b/lib/fastlane/plugin/versioning/actions/increment_build_number_in_xcodeproj.rb @@ -65,9 +65,9 @@ def self.set_build_number_using_target(params, 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? + 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