XcodesOrg / XcodesOrg/xcodes

Cannot download with brew if Xcode not already installed

Open
#176 3 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
4.8k
Forks
182
Avg merge
2d 12h
Merged PRs (30d)
1

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Reproduce brew install xcodes on a macOS machine without Xcode, then trace the build step invoking /usr/bin/xcrun --sdk macosx --find xctest; done means the package installs without requiring a preinstalled Xcode or manually configured command-line tools.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, swift
Domain
build-system, cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.