XcodesOrg / xcodes

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

Cannot download with brew if Xcode not already installed #176

Open Tyler-Keith-Thompson opened 2 years ago

Tyler-Keith-Thompson commented 2 years ago

I'm setting up a bunch of new boxes and wanted to use Xcodes to get the latest greatest. However every time I try to brew install I get:

make
install
prefix=/opt/homebrew/Cellar/xcodes/0.19.0

error: terminated(72): /usr/bin/xcrun --sdk macosx --find xctest output:
  xcrun: error: unable to find utility "xctest", not a developer tool or in PATH

Workaround: If you install a version of Xcode first and set the command line tools (under preferences -> location) this starts to work. It's just a bummer.

brentleyjones commented 2 years ago

Duplicate of https://github.com/RobotsAndPencils/xcodes/issues/148.

Tyler-Keith-Thompson commented 2 years ago

Not quite? This is happening on an intel Mac, not just an M1 issue

brentleyjones commented 2 years ago

I think the title of the other one is just misleading. It's the same issue, XCTest isn't available with the command line tools.