diff --git a/libraries/xcversion.rb b/libraries/xcversion.rb index f110eca..0945cea 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)') } + lines.map { |line| line.chomp('(installed)').strip } end end end