Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a new select command, which uses
xcode-select
under the hood. The motivation for adding this feature is that for users who are installing multiple Xcode versions simultaneously, and so xcodes is valuable, switching between those versions is a likely need and not easy to do withxcode-select
alone. I've been using a small shell script for many years to solve exactly this problem, but it would be nice to have this inside xcodes instead.It can be used like this:
The output of the
xcodes list
andxcodes installed
commands also annotate the version that's selected in the same way.If you uninstall the currently selected Xcode version, xcodes will automatically select the latest installed version, if there is one, so that the selected path is a valid one.
Closes #47
Closes #82