Skip to content

When running xcodes install --select, if Xcode is already installed, it is not selected #236

@daltonclaybrook

Description

@daltonclaybrook

When running xcodes install --select 14.0.1, if Xcode 14.0.1 is already installed on the system, it is not re-installed, but it is still selected correctly. The following message is printed:

Selected /Applications/Xcode-14.0.1.app/Contents/Developer

When running xcodes install --select without specifying a version, the tool reads the .xcode-version file and attempts to install that version. Unlike in the above example, however, if this version is already installed, it is not selected and the following message is printed instead:

14.0.1 is already installed at /Applications/Xcode-14.0.1.app

I believe that these two invocations should behave the same way. Specifically, both should select the appropriate version of Xcode, even if it is already installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions