lizuncong (lizuncong) · GitHubI am a strong believer in reverse engineering. lizuncong has 43 repositories available. Follow their code on GitHub.https://github.com/lizuncong

在mac下使用git或者npm install 时经常遇到下面的问题:

xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist, use `xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools (or see `man xcode-select`)
 

但是mac下又没有安装xcode。此时可以按照下面的步骤,就可以不用安装xcode就能解决这个问题:

1.xcode-select --install

2.sudo xcode-select --switch /Library/Developer/CommandLineTools

Logo

助力广东及东莞地区开发者,代码托管、在线学习与竞赛、技术交流与分享、资源共享、职业发展,成为松山湖开发者首选的工作与学习平台

更多推荐