我已经下载了iPhone SDK 4.0.2,我想安装它,但看起来空间不足。这让我想到也许我可以卸载以前版本的 iPhone SDK,只安装最新的版本。
有人知道该怎么做吗? 我应该保留旧版本吗?它们在什么情况下有用吗?
感谢您分享您的想法!
最佳答案
您应该删除旧版本吗?由你决定。您肯定会获得“干净”的安装。做任何你认为最适合你的事情。 (卸载后您可能需要重新启动系统。)
Paul Peelen 链接了命令行步骤来进行删除,但我将逐字引用 Apple 的“About Xcode.pdf”,因为该链接可能会消失:
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.
(这些至少是“适用于 Mac OS X 10.6 和 iPhone OS 4.0 的 Xcode 3.2.3”的最新版本)
关于iphone - 安装新版本iPhone SDK时如何删除旧版本iPhone SDK?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3607964/