Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode Command Line Tools "xctest" error on fresh install #225

Open
bdrelling opened this issue Nov 2, 2021 · 0 comments
Open

Xcode Command Line Tools "xctest" error on fresh install #225

bdrelling opened this issue Nov 2, 2021 · 0 comments

Comments

@bdrelling
Copy link

I ran the following two commands:

brew install mint
mint run swiftformat .

The output I get is:

🌱 Cloning SwiftFormat 0.48.16
🌱 Resolving package
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
🌱 Encountered error during "swift package resolve". Use --verbose to see full output

I looked up the error and found a StackOverflow post mentioning to simply set the Location in Xcode, which I had not yet done. When I ran xcode-select -p, the output was /Library/Developer/CommandLineTools. After changing the Xcode location, everything worked.

My questions/asks are:

  1. What's the deal with requiring xctest for the command to run?
  2. The installation instructions (a) still mention Xcode 10.2, not even 10.2 and later, and (b) should include note of this if it's not only required to install, but set the Command Line Tools location afterwards.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant