如何删除旧的不需要的设备? [英] How to remove older unneeded devices?

查看:75
本文介绍了如何删除旧的不需要的设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,这与我发布的先前问题有关-如何删除4.3模拟器.我愚蠢地安装了iOS 5.0模拟器,现在我上一篇文章中提供的技术无效.当您删除5.0sdk并重新启动Xcode时,它会强制您安装旧版模拟器或退出.

So this is related to a prior question I posted - how to remove 4.3 simulators. I stupidly installed the iOS 5.0 Simulator, and now the technique offered in my last post does not work. When you remove the 5.0sdk, then restart Xcode, it forces you to install the legacy simulators or quit.

我什至删除了Xcode 4.4,但无济于事(它必须将我不幸的选择存储在首选项文件中).

I even deleted Xcode 4.4 and re-installed it to no avail (it must store my unfortunate choice deep in the preferences file).

我想摆脱它的原因是Scheme弹出窗口中现在有5个选项,而不是3个,这使得测试通用应用程序确实很痛苦.

The reason I want to get rid of it is that the Scheme popup now has 5 options in it instead of 3, making it a real pain to test a Universal App.

当我CD到~/Library/Caches/com.apple.dt.Xcode/Downloads时,我看到:

When I cd to ~/Library/Caches/com.apple.dt.Xcode/Downloads I see:

$ ls

Xcode.SDK.iPhoneSimulator.5.0-5.0.0.1.dmg
Xcode.SDK.iPhoneSimulator.5.0-5.0.1.1.dmg
eded78df8bfabaf6560841d10cf8e53766f74f28.dvtdownloadableindex
f7133e82a08bdb4ebf724f16beed2bbac2a265cf.dvtdownloadableindex

$

我的机器上同时具有Xcode 4.4和4.5DP3,因此假设每个Xcode版本中前两个文件都是一个-无论如何我都将它们都移到了/tmp.

I have both Xcode 4.4 and 4.5DP3 on my machine, so assume that the first two files are one per Xcode release - in any case I moved both to /tmp.

先前的建议是删除:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk

推荐答案

除了删除iPhoneSimulator5.0.sdk文件夹外,还要删除~/Library/Caches/com.apple.dt.Xcode/Downloads中的相应.dmg文件.然后Xcode将不再强迫您重新安装它.

In addition to removing the iPhoneSimulator5.0.sdk folder, delete the corresponding .dmg file in ~/Library/Caches/com.apple.dt.Xcode/Downloads. Then Xcode will not force you to reinstall it anymore.

这篇关于如何删除旧的不需要的设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆