OSX 选用独立xcode命令行开发工具

由于删除了xcode.app,导致rustc/ cargo build 无法使用

= note: xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist
Use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, or use `xcode-select --install` to install the standalone command line developer tools.
See `man xcode-select` for more details.

同时又不想安装xcode.app (太重了),根据提示

xcode-select --install

安装了独立的xcode命令行工具,接着选择独立的命令行工具

https://stackoverflow.com/a/40008480

sudo xcode-select -s /Library/Developer/CommandLineTools
posted @ 2022-02-21 15:20  陈昱行  阅读(149)  评论(0)    收藏  举报
相关博文:
阅读排行:
· 一则复杂 SQL 改写后有感
· 曾经风光无限的 Oracle DBA 已经落伍了吗?
· 接口被刷百万QPS,怎么防?
· C# 锁机制全景与高效实践:从 Monitor 到 .NET 9 全新 Lock
· 一个开源免费、功能丰富的 WPF 自定义控件资源库
点击右上角即可分享
微信分享提示