美文网首页
使用Clang++指令编译dsc_extractor.cpp文件

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

作者: 秋天的田野 | 来源:发表于2018-04-14 08:12 被阅读20次

    使用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即可

    相关文章

      网友评论

          本文标题:使用Clang++指令编译dsc_extractor.cpp文件

          本文链接:https://www.haomeiwen.com/subject/mepkkftx.html