How can I resolve “Error: No developer directory found at /Developer”?

后端 未结 4 1954
伪装坚强ぢ
伪装坚强ぢ 2020-12-22 16:59

I just upgraded XCode to 4.3.1. I\'m using a script to build (and then deploy through Testflight) my app. But I now receive this error:

Error: No deve

相关标签:
4条回答
  • 2020-12-22 17:31

    This solved for me:

    Mostly this error occurs when you have installed a newer version of xcode. And the command line tools are yet to be initialized.

    To resolve this: Go under Xcode Preferences > Locations (tab) > And the bottom options is Command Line Tools. Please select the Xcode version for tools.

    Example (For Xcode 8.3.3): Go under Xcode Preferences > Locations (tab) > And the bottom options is Command Line Tools. Select Xcode 8.3.3 (7D1014).

    0 讨论(0)
  • 2020-12-22 17:33

    sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

    0 讨论(0)
  • 2020-12-22 17:37

    You could also do this instead ...

    sudo ln -s /Applications/Xcode.app/Contents/Developer /Developer
    
    0 讨论(0)
  • 2020-12-22 17:47

    Everything you guys answered is correct. But for those who hit the following error are missing a step:

    Error:

      "xcode-select: Error: Path "/Applications/Xcode.app/Contents/Developer" is not a directory."
    

    Missing step:

    Double click your xcode 432.dmg. Now don't double click the xcode.app to use it. Instead copy it /Applications folder and then open it from there to install xcode.
    

    Now use terminal command

     sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
    

    Thats it. Your error won't happen again and Filemerge will work now.

    0 讨论(0)
提交回复
热议问题