diff --git a/libraries/xcversion.rb b/libraries/xcversion.rb index 975c00c..765614c 100644 --- a/libraries/xcversion.rb +++ b/libraries/xcversion.rb @@ -53,7 +53,7 @@ module MacOS def available_versions lines = shell_out!(XCVersion.list_available_xcodes).stdout.lines lines.reject! { |line| line.start_with?(/\D/) } - lines.map { |line| line.chomp('(installed)').strip } + lines.map { |line| line.chomp.chomp('(installed)').strip } end end end