zoukankan      html  css  js  c++  java
  • xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist

    原因:卸载了mac上的xcode,重新安装后发现项目用git提交不了,且有以下报错

    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.

    依次输入以下指令即可:

    以下有注意的点,建议设置 sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer      ,配合flutter对xcode的配置,我用以下加红的位置配置导致我后面因为路径不同flutter对xcode配置失败,我重新卸载才能配置成功

    sudo xcode-select -r
     
    sudo xcode-select --switch /Library/Developer/CommandLineTools // 不建议用, 用这个 sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer  
     
    xcode-select -p

    最后输入git status得到以下:

    参考:https://blog.csdn.net/weixin_30721077/article/details/95149418

  • 相关阅读:
    J2SE基础:7.系统经常使用类一
    Win7 64位 php-5.5.13+Apache 2.4.9+mysql-5.6.19 配置
    FUDCon
    扬帆起航 彼岸花开——2013届毕业晚会《再见民大》倾情再演
    毛磊
    查经
    H.O.T candy
    svn rm --keep-local ./QueryParser_kill.logs
    python datetime笔记
    柯震东_百度百科
  • 原文地址:https://www.cnblogs.com/lude1994/p/14129594.html
Copyright © 2011-2022 走看看