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

xcrun: error: unable to find utility "metal", not a developer tool or in PATH #7948

Closed
1 task done
Tom-Boscher opened this issue Feb 17, 2024 · 3 comments
Closed
1 task done
Labels
defect [core label] open source Open source community projects, contributions, etc

Comments

@Tom-Boscher
Copy link
Contributor

Tom-Boscher commented Feb 17, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

When running cargo run I got this error:

  --- stderr
  Failed to run rustfmt: cannot find binary path (non-fatal, continuing)
  metal shader compilation failed:
  xcrun: error: unable to find utility "metal", not a developer tool or in PATH

warning: build failed, waiting for other jobs to finish...

Command line tools are already installed here /Library/Developer/CommandLineTools

Environment

Zed: v0.123.2 (Zed Preview)
OS: macOS 14.3.1
Memory: 16 GiB
Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

No response

@Tom-Boscher Tom-Boscher added admin read Pending admin review defect [core label] triage Maintainer needs to classify the issue labels Feb 17, 2024
@sexnine
Copy link

sexnine commented Feb 18, 2024

I had the same issue, but having XCode installed and running xcode-select --switch /Applications/Xcode.app/Contents/Developer fixed the issue for me.

Found this solution here: gfx-rs/gfx#2309 (comment)

@Tom-Boscher
Copy link
Contributor Author

Thank you @sexnine, it works for me

@JosephTLyons JosephTLyons added open source Open source community projects, contributions, etc and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Feb 20, 2024
@BuonOmo
Copy link
Contributor

BuonOmo commented Mar 3, 2024

I think it is also worth mentionning the Building ZED on MacOS documentation here, at least that's what was missing for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect [core label] open source Open source community projects, contributions, etc
Projects
None yet
Development

No branches or pull requests

4 participants