简体   繁体   中英

How to remove old versions of iPhone SDK when installing the new one?

I have downloaded iPhone SDK 4.0.2, I wanted to install it, but it looks that I don't have enough space. This made me think that maybe I could unistall the previous versions of iPhone SDK and install only the newest one.

Does anyone know how to do this? Should I keep the old versions? Is there any situation they could be useful?

Thanks for sharing your thoughts!

Should you remove old versions? Up to you. You'll certainly have a "clean" installation. Do whatever you think is best for you. (You might want to reboot your system after uninstalling.)

Paul Peelen linked the command line step to do the removal, but I'm going to quote ad verbatim from Apple's "About Xcode.pdf" since the link could disappear:

Uninstalling Xcode Developer Tools

To uninstall Xcode developer tools on the boot volume along with the directory, from a Terminal window type:

$ sudo <Xcode>/Library/uninstall-devtools -mode=all

To remove the underlying developer content on the boot volume, but leave the directory and supporting files untouched, from a Terminal window type:

$ sudo <Xcode>/Library/uninstall-devtools --mode=systemsupport

To just remove the UNIX development support on the boot volume, but leave the directory and supporting files untouched, from a Terminal window type:

$ sudo <Xcode>/Library/uninstall-devtools --mode=unixdev

Finally, to just uninstall the directory you can simply drag it to the trash, or from a Terminal window type:

$ sudo <Xcode>/Library/uninstall-devtools --mode=xcodedir

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.

(Those are current at least as of "Xcode 3.2.3 for Mac OS X 10.6 and iPhone OS 4.0")

You can use appzapper, or just remove the stuff in /Developer/Applications (I believe).

Edit: Asked my friend google, and this is what it came up with: http://macdevelopertips.com/xcode/how-to-uninstall-xcode.html

新的iOS SDK会覆盖大多数旧的SDK(除非您更改安装目录),因此它实际上并不会使磁盘空间使用量增加一倍。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM