My laptop is Thinkpad X61, with only 160GB harddisk. Although I use 25GB for Mac OS for developing, it's still not enough, especially when I need to update the iPhone's SDK.
Each time when I update the SDK, I need to uninstall the Xcode to release at least 4GB space, then install the new one again. But how to uninstall Xcode?
Here is the command that I find from the Internet.
sudo /Developer/Library/uninstall-devtools --mode=all
It can't be more easier, isn't it? Good luck!
关于如何卸载Xcode和iPhone的SDK
我用于iPhone开发的电脑是ThinkPad X61,只有160GB硬盘,我划分了25GB给苹果系统,装完iPhone开发环境后只剩余7G左右了,有时候甚至不满5G。苹果升级SDK相当频繁, 还不乏一些beta版SDK,每次升级,都会遇到硬盘剩余空间不够,不让我安装的问题。那就只能先把原来的Xcode和SDK都卸载掉然后再安装新的啦。 于是出现了卸载的需求,但是如何卸载呢?网上搜了一下后,得知使用一下命令行即可,非常方便。
sudo /Developer/Library/uninstall-devtools --mode=all