-
Notifications
You must be signed in to change notification settings - Fork 547
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' error when compiling 'gfx-backend-metal' #2309
Comments
Hi, could you verify that you've installed the Command Line Tools for Xcode? It should automatically add the necessary tooling to your path. |
Yep
|
Which path is printed with You might need to try updating Xcode to be sure you have the latest macOS SDK. |
Also, what happens if you just run |
I'm having the same problem. Running |
Yeah, I get the same results as @micouy |
Running |
Ok, so it's clear that this is just a misconfigured environment, and a solution is proposed. Closing then. Feel free to re-open! |
FWIW, on my clean installation of macOS Mojave, |
In case anyone else arrives at this issue from a search:
Xcode is required for the complete macOS SDK (specifically the tools for compiling Metal shaders). The command line tools are required to use the SDK without opening the Xcode app. You might have installed the command line tools before installing Xcode. For instance, you might have set up Homebrew first. The command line tools are pointing to an incomplete SDK, rather than the one you installed with Xcode. How to fix
|
Without the additional steps an error like `error: failed to run custom build command for `gfx-backend-metal v0.3.3`` may occur. Additional steps copied from: gfx-rs#2309 (comment)
3369: Made instructions for macOS more clear r=grovesNL a=KaareZ Without the additional steps, an error like `error: failed to run custom build command for `gfx-backend-metal v0.3.3`` may occur. Tested on a fresh install of macOS 10.15.6 Additional steps copied from comment: #2309 (comment) Co-authored-by: Kaare Hansen <kaare@gshansen.dk>
When trying to install Orca on mac this message appeared: "xcrun: error: unable to find utility "metal", not a developer tool or in PATH" The instructions as explained here solve the issue: gfx-rs/gfx#2309 (comment)
Running xcode-select --switch /Applications/Xcode.app/Contents/Developer fixed problem on ventura 13.2 |
I wonder whether I could |
gpui requires "metal", but it's not installed on a new system. The fix comes from gfx-rs/gfx#2309 (comment)
When i try and run the quad example with
cargo run --bin quad --features=metal
I get the following error:I'm fairly certain I've got all the xcode stuff installed, and my PATH is
The text was updated successfully, but these errors were encountered: