def assert_version_changed_diff(git_diff_string)
      git_diff_lines = git_diff_string.lines
      git_diff_string.each_line.each_with_index do |line, index|
        next unless line.include? "<key>CFBundleShortVersionString</key>"
        # we need to check the next 2 lines of the string to determine if it's a git diff change.
        if git_diff_lines.length >= (index + 3) && git_diff_lines[index + 1][0] == "-" && git_diff_lines[index + 2][0] == "+"
          return # rubocop:disable NonLocalExitFromIterator
        end
      end

      fail "You did not change the iOS version."
    end
def assert_version_changed_diff(git_diff_string)
      git_diff_lines = git_diff_string.lines
      git_diff_string.each_line.each_with_index do |line, index|
        next unless line.include? "<key>CFBundleShortVersionString</key>"
        # we need to check the next 2 lines of the string to determine if it's a git diff change.
        if git_diff_lines.length >= (index + 3) && git_diff_lines[index + 1][0] == "-" && git_diff_lines[index + 2][0] == "+"
          return # rubocop:disable NonLocalExitFromIterator
        end
      end

      fail "You did not change the iOS version."
    end
Ignore. Pass the git diff string here to see if the version string has been updated. Use `ios_version_change.assert_version_changed("ProjectName/Info.plist")` instead as it's more convenient sending the path to the Info.plist file.
 @return [void]