как удалить command line tools mac os
Question: Q: How to uninstall «Command Line Tools» in Xcode 4.3?
Just installed Command Line Tools using the perference in Xcode 4.3. After removing Xcode 4.3, I found the Command Line Tools are not removed.
Is there any way to uninstall?
Mac Pro, Mac OS X (10.7.3)
Posted on Feb 16, 2012 11:00 AM
All replies
Loading page content
Page content loaded
Check the ‘About Xcode’ readme:
Uninstalling Xcode Developer Tools
To uninstall Xcode developer tools on the boot volume along with the directory, from a Terminal window type:
To remove the underlying developer content on the boot volume, but leave the directory and supporting files untouched, from a Terminal window type:
To just remove the UNIX development support on the boot volume, but leave the directory and supporting files untouched, from a Terminal window type:
Finally, to just uninstall the directory you can simply drag it to the trash, or from a Terminal window type:
NOTE: The uninstaller that ships with previous versions of the Xcode developer tools will not clean everything off of your system properly. You should use the one installed with these Xcode developer tools.
If you find a black hole with the above, you could always reinstall Xcode, with those tools deselected and then delete according to the above, but all bets are off at that point, sorry 🙂
How do I manually uninstall the Developer Tools?
I installed the Developer Tools way back in Tiger or Leopard and I’d like to uninstall them now. I have Xcode 4.0.2. How do I uninstall them manually?
4 Answers 4
Yes, simply run the following in Terminal:
Where is the default installation of Xcode, typically:
Based on your OP, I am assuming you are running pre-Lion Xcode. This is covered in the documentation that comes with the Developer Tools install:
/Developer/About Xcode
NOTE: The uninstaller that ships with previous versions of the Xcode developer tools will not clean everything off of your system properly. You should use the one installed with these Xcode developer tools.
Pleae super-double check that this documentation either exists with your installation or is the same as your installation before you act. As with any such commands, precision and compatibility are critical.
It looks like you just have to remove the /Developer folder (especially if you have already installed version 4.3 or later of Xcode). The Xcode section of the Apple Developer Support Center actually tells you to do this (emphasis mine).
I’ve installed the latest version of Xcode from the Mac App Store, but a previous version of Xcode (4.2.1 or earlier) keeps launching. What should I do?
To run the latest version of Xcode, make sure you are launching Xcode.app from the Applications folder. Xcode 4.3 and later is packaged on the Mac App Store as a single application and installs in your Applications folder as Xcode.app.
Previous versions of Xcode placed the tools and frameworks in the Developer folder. You can delete the older version of Xcode by dragging the Developer folder to the trash.
This is reiterated in New Features in Xcode 4.3 (emphasis mine).
The simplification afforded by repackaging Xcode 4.3 as a single app bundle eliminates the need for the /Developer directory containing prior versions of Xcode. As a result, the Install Xcode application and the uninstall-devtools command line script are also no longer needed.
Note: The first time you run Xcode 4.3, you are prompted with a dialog to delete the Install Xcode application from the Applications directory if one is resident, and to remove any older installation of Xcode (Figure 4). These actions are optional, Xcode 4.3 can co-exist with older installations of Xcode on the same Mac. Some operations may require an administrator password to enable them if you switch from one version of Xcode to another.
Figure 4 Option to remove older versions of Xcode
If you choose not to delete these items on the first launch of Xcode 4.3, you can remove the /Developer folder and the Install Xcode application by dragging them to the Trash at any time.
Установка и работа с менеджером пакетов для Maс OS X (MacPort и Homebrew)
Менеджер пакетов в Mac OS X позволит нам легко работать с пакетам посторонних разработчиков. В этом топике рассмотрим два таких менеджера: MacPort и Homebrew.
1. MacPort
Официальний сайт
На этом же сайте можна найти Mac OS X Package (.pkg) Installer для Mountain Lion, Lion, Snow Leopard и Leopard. Установите подходящий вам пакет и пользуйтесь на здоровье. Есть и другие способы установки, но мы выбрали простой и быстрый. На случей чево, у меня port установился сюда: /opt/local/bin/port.
Требование:
Работать с port придельно просто — ищем в «портах» нужный пакет и устанавливаем его:
Дополнительные команды:
2. Homebrew
Официальная страница
О Homebrew поговорим подробнее…
Требование:
Установка:
После успешной установки виполним следующую команду:
Если в результате этой команди получим ответ: «Your system is raring to brew», тогода все хорошо и можете спокойно начинать работу з brew. В ином случае продолжим…
Если возникла ошибка Warning: Experimental support for using Xcode without the «Command Line Tools», то скорее всего была обновлена «ось», к примеру, с Lion к Mountain Lion, но не была переустановлена Command Line Tools для Xcode.
Если возникла ошибка Error: No such file or directory — /usr/local/Cellar, то нужна создать эту директорию:
После этого опять запускаем команду:
Если мы получим что-то вроде этого:
то исправляем примером так:
Если на этот раз никаких ошибок не произошло, тогда все — можна спокойно работать с Homebrew.
Удаляем сторонние приложения в «Системных настройках» на Mac
Некоторые сторонние приложения при установке создают собственные элементы меню в «Системных настройках» — ради удобства пользователя. С помощью них можно легко настроить или обновить программу, причем сделать это гораздо быстрее, чем обычно. Однако, если вы не хотите видеть подобные пункты в меню настроек, их можно удалить или скрыть. Рассмотрим подробнее этот процесс.
Для удаления значка зажимаем клавишу Command и выбираем программу. Должно появиться меню с опцией удаления.
Если этот метод не подходит, то можно сделать это вручную.
Вот так просто можно удалить сторонние приложения в «Системных настройках» на Mac.
Новости, статьи и анонсы публикаций
Свободное общение и обсуждение материалов
Лонгриды для вас
Едва ли найдутся автомобилисты, которые никогда не получали штрафов за превышение скорости и другие нарушения. Речь даже не о злостных нарушителях, а скорее …
iPad 9 и iPad Air 4 относятся к разным ценовым категориям, но первый ещё не успел подешеветь, а второй — уже подешевел достаточно, чтобы примерно сравняться по стоимости. Поэтому сравнивать их более чем уместно. Разберёмся, что лучше брать в 2021 году
Если вы забыли пароль от iPhone, это не значит, что он теперь превратится в кирпич. Вы всегда можете сбросить смартфон до заводских настроек, а потом настроить его заново. Рассказываем, как это сделать проще всего
Building from the Command Line with Xcode FAQ
Building from the Command Line with Xcode FAQ
This document provides answers to frequently asked questions about command line tools.
What is the Command Line Tools Package?
The Command Line Tools Package is a small self-contained package available for download separately from Xcode and that allows you to do command line development in macOS. It consists of the macOS SDK and command-line tools such as Clang, which are installed in the /Library/Developer/CommandLineTools directory.
Downloading command-line tools is not available in Xcode for macOS 10.9. How can I install them on my machine?
In macOS 10.9 and later, the Downloads pane of Xcode Preferences does not support downloading command-line tools. Use any of the following methods to install command-line tools on your system:
Listing 1 Using xcrun to run dwarfdump in the Terminal application.
Download the Command Line Tools package from the Developer website
Figure 1 Download page for the Command Line Tools package.
Note: In macOS 10.9 and later, Software update notifies you when new versions of the command-line tools are available for update.
Install the Command Line Tools package via the Terminal application
How can I uninstall the command-line tools?
Xcode includes all of the command-line tools. If it is installed on your system, remove it to uninstall the command-line tools.
If the /Library/Developer/CommandLineTools directory exists on your system, remove it to uninstall the command-line tools.
I have multiple versions of Xcode installed on my machine. What version of Xcode do the command-line tools currently use?
To find out what version of Xcode is being used by your tools, run the following command in Terminal:
Listing 2 Printing the version of Xcode currently used by the command-line tools.
How do I select the default version of Xcode to use for my command-line tools?
To select a default Xcode for your command-line tools, run the following command in Terminal:
is the path to the Xcode.app package you wish to use for development.
Listing 3 Setting the default Xcode version.
How do I build my projects from the command line?
See below for various xcodebuild usage. Be sure to navigate to the directory containing your project or workspace in Terminal before running any of the following commands.
To list all schemes in your workspace, run the following command in Terminal:
where is the name of your workspace.
Listing 4 Listing all schemes in the MyApplication workspace.
To list all targets, build configurations, and schemes used in your project, run the following command in Terminal:
where is the name of your project.
Listing 5 Listing all information about MyProject, an Xcode project.
To build a scheme in your project, run the following command in Terminal:
where and build are respectively the name of your scheme to be built and the action to be performed on your scheme.
Listing 6 Building the tvOS scheme.
To build your target with a configuration file, run the following command in Terminal:
where and are respectively the name of your target to be built and the name of your configuration file. See Xcode Help’s Build configuration file reference for more information about xcconfig files.
Listing 7 Building the iOS target with a configuration file.
Listing 8 Setting up a location for iOS’ debug app version.
Listing 9 Setting up a location for iOS’s released app version.
My app has multiple build configurations. How do I set a default build configuration for xcodebuild?
Figure 2 Debug set as the default build configuration for xcodebuild.
How do I run unit tests from the command line?
xcodebuild provides several options for running unit tests.
To build and run unit tests from the command line, execute the following command in Terminal:
To build unit tests without running them from the command line, execute the following command in Terminal:
To run unit tests without building them from the command line, execute any of the following command in Terminal:
The test action requires specifying a scheme and a destination. See How do I implement the Build For Testing and Test Without Building features from the command line? for more information about build-for-testing and test-without-building actions.
Note: See Xcode Scheme and Run your app in Simulator for more information about scheme and destination, respectively.