I upgraded to xcode 5 Command Line Tools on Friday. Something is not working correctly and I want to go back to the last 4.x version ox xcode. How do I uninstall xcode 5 command line tools? I don't see anything in the release notes.
相关问题
- IOs7 multiple storyboard localization issue
- RunUnitTests error after Xcode 5 update
- sendAsynchronousRequest makes UI freezes
- iOS - Refresh Control - “Attempting to change the
- How to change color of UIActionSheet in iOS 7?
相关文章
- Xcode Developer Preview: Cannot Run on Device
- Ad hoc distribution: failed to install app
- Xcode Bots not sending email on success/failure
- CLGeocoder reverse geocoding fails with Error Doma
- Xcode systemic crash on open project - how to rese
- Import a project in SVN from Xcode 5
- Custom Xcode 5 Project Templates only half working
- iOS Release IPA using someone else's .p12 & .m
Depending on whether you are running Xcode 5 in Mavericks or not, you will need to do two different things to uninstall the command line tools.
In Mavericks, Xcode includes its own copy of the Command line tools (i.e. they are bundled as part of Xcode.app). Therefore, uninstalling the Xcode (check instructions below) will remove the Command line tools too.
For older Mac OSX versions running Xcode 5 or older versions (Xcode 4.x), you can find previous SO answers which explain how to uninstall Xcode's command line tool. You can use this script (Read more about it in this post):
You can run this easily by opening a Terminal and running this command (it will download the script and execute it automatically):
If everything worked fine, you could open Xcode and see that the Command Line Tools appear as to be installed.
Then, depending on what you want, you could downgrade Xcode to a lower version and reinstall the Command Line Tools for that version, for example.
To downgrade Xcode, as explained in this SO answer:
/Applications
and delete the Xcode app.The rm command removes (deletes) files or directories.
Delete CLT from following command
from terminal.
I stumbled upon this while trying to uninstall Command Line Tools v6.
I had the full Xcode 6 installed, but moving Xcode to trash did NOT uninstall/delete CLT as well. I still had
/usr/bin/clang
for example. The solution was to manually remove CLT using the .bom contents (similar to @veducm's answer):Replace
DevSDK_OSX109
with the version you have. You may have multiple ones, in which case, apply the same command to all of them (e.g. I had bothDevSDK_OSX109
andDevSDK_OSX1010
because I had installed CLT for Mavericks and Yosemite too).NOTE: This will delete the files listed in the .bom. You can view the contents them first by doing just
lsbom -fls /var/db/receipts/com.apple.pkg.CLTools_Executables.bom
etc if you are unsure.NOTE2: You need the
cd /
since paths reported by lsbom are relative. You can also remove CLT by simply doingrm -rf /Library/Developer/CommandLineTools
.