How to fix the compile Rust project on macOS?

Last night, I have one the Rust project cannot compile itself and 100% sure it’s working fine in the past days. No change anything about it. What’s happened?

According to the screenshot content, it should be relevant to the system environment as bellow:

Just as expected! when I was opened the XCode tools, it told me that need to install another component,

sudo xcode-select --install 

Typing in password of local machine and then the program will be installing process for XCode tool:

That’s it. back to project and then with ” cargo check “, it’s working fine.

Next, with a “cargo build ” command to build the project,


Good Luck ~

If you have any questions , typing comments as bellow .

Leave a Reply

Your email address will not be published.