xcodes icon indicating copy to clipboard operation
xcodes copied to clipboard

How do I print the install path of a specific Xcode?

Open Naville opened this issue 8 months ago • 1 comments

Hi:

We use xcodes in our CI infra, for now I just hard-encode /Applications/Xcode-{VERSION}.app.

However, if AppStore already installs Xcode as /Applications/Xcode.app, this breaks.

xcodes install -p doesn't achieve what I need, because in this case:

xcodes install -p 16.4.0
16.4 is already installed at /Applications/Xcode.app

Expected behavior:

  • xcodes install 16.4.0 if it's not installed
  • Then just prints out the raw path without that message prefix

Naville avatar Aug 13 '25 05:08 Naville

Neither does:

xcodes select -p 16.2.0

achieves what I need though, for example:

xcodes select -p 99.99.99
/Applications/Xcode.app/Contents/Developer

Naville avatar Aug 13 '25 07:08 Naville