使用Clang++指令编译dsc_extractor.cpp文件报错问题

使用Clang++指令编译dsc_extractor.cpp文件报:

xcrun: error: active developer path ("/Applications/Xcode9.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.

执行命令:$:sudo xcode-select --switch /Applications/Xcode.app

Xcode.app版本注意与/Applications中的一致。例如

$:sudo xcode-select --switch /Applications/Xcode9.app

然后再次执行编译指令$:clang++ -o dsc_extractor dsc_extractor.cpp即可

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容