XcodesOrg / xcodes

The best command-line tool to install and switch between multiple versions of Xcode.
MIT License
3.66k stars 122 forks source link

Don't error when using xcode-select to find current selected version. #210

Open thii opened 1 year ago

thii commented 1 year ago
$ xcodes list
Failed executing: `/usr/bin/xcode-select -p` (2).

MAINTAINER EDITED BELOW

If I don't have any Xcode version installed, Xcodes currently errors out using the xcode-select to print out which version is selected

A bit of refactor is needed, but Xcodes should fail gracefully if xcodeSelectPrintPath fails.

MattKiazyk commented 1 year ago

Thanks @thii - i've updated the wording to make this issue more of how to fix it.

thii commented 1 year ago

Xcodes should fail gracefully if xcodeSelectPrintPath fails.

I think it should not fail though. If I have a new Mac, the first thing I download would be xcodes, and I want it to be able to download Xcode. But currently I'd have to manually download Xcode in order to run xcodes in order to download Xcode.