iphone - 安装新版本iPhone SDK时如何删除旧版本iPhone SDK?

标签 iphone ios4

我已经下载了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/

相关文章:

iphone - 将图像存储到sqlite数据库中

ios - 如何在 ios 的 NSDocumentDirectory 中保存现有的 pdf 文件

iphone - UItableview 不会滚动第一行我想使用类似标题并且我已经有部分标题

iphone - 如何在我的 iPhone 应用程序中同时支持 iOS 4.X SDK 和 iOS 5 SDK?

iphone - MapKit:如何平移和缩放以适合我的所有注释?

ios - 以编程方式配置 iPad IP 地址

iphone - CoreData 中保存的字符串返回 <null> 和字符串。为什么?

ios - AVFoundation,如何关闭captureStillImageAsynchronouslyFromConnection时的快门声?

iPhone 接口(interface)尺寸

ios - 如何在 iTunesConnect 上注册 Game Center 应用程序?