How to update Xcode to install “UNIX Development Support”?

前端 未结 6 1743
醉梦人生
醉梦人生 2021-01-03 23:59

I installed Xcode a long time ago.

Apparently I didn\'t check back then the \"UNIX Development Support\" checkbox.

Now I want to have them but when I click o

相关标签:
6条回答
  • 2021-01-04 00:16

    You should uninstall and then re-install the developer tools.

    To uninstall the tools, run the following command in Terminal:

    sudo /Developer/Library/uninstall-devtools --mode=all
    
    0 讨论(0)
  • 2021-01-04 00:23

    In the Xcode .dmg file, there is a Packages folder. You can manually install DeveloperToolsCLI.pkg which creates the link in /usr/bin.

    At least, it worked for me.

    0 讨论(0)
  • 2021-01-04 00:24

    With Xcode 4.3 (from Apple App Store) you can enable Unix Command Line Tools via the Xcode Menu: Preferences -> Download -> Components

    0 讨论(0)
  • 2021-01-04 00:33

    You can also right click the "Install Xcode X.X" icon and Show Package Contents then in Contents > Resources > Packages, you will find many packages from among which resides DeveloperToolsCLI.pkg. This package installs the files you want in /usr/bin.

    0 讨论(0)
  • 2021-01-04 00:34

    Finally.

    I had to download from Apple's website the latest version of Xcode 3 (3.2) along with the iPhone SDK that I won't use in the near feature.

    This time the "UNIX Development Support" was enabled:

    Xcode 3.2 Installation

    So now I can compile from the command line!

    0 讨论(0)
  • 2021-01-04 00:35

    In xcode > 4.5 select Preferences -> Download -> Components -> Command Line Tools

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