I noticed this issue was closed last May and was invited to re-open the topic again.
I cannot explain recreation steps that's why I didn't use GitHub issues, but it is a very common issue. If I compile with
cargo run or
rustc x.rs, it yields the same error:
error: linking with `cc` failed: exit status: 1 | = note: "cc" "-arch" "arm64" "/var/folders/st/4pr4pf1d5hg5dwjnn8m336qw0000gn/T/rustcTuWXR6/symbols.o" ... = note: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun error: aborting due to previous error
How to solve this, please?