Xcode Simulator:如何删除较旧的不需要的设备? [英] Xcode Simulator: how to remove older unneeded devices?

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

问题描述

我正在运行最初仅支持iOS 5.1的Xcode 4.3.1 iOS-Simulator.

I'm running Xcode 4.3.1 iOS-Simulator which originally only supports iOS 5.1.

我需要使用iOS 4.3测试我的代码,因此我使用了Xcode的安装"功能来安装它,如安装Xcode"中所述使用iOS 4.3设备模拟器?"

I need to test my code with iOS 4.3, so I used Xcode's "Install" feature to install it as described in "Installing Xcode with iOS 4.3 device simulator?"

现在,我已经完成测试,但是找不到卸载4.3部分的方法("iPhone 4.3 Simulator"和"iPad 4.3 Simulator").我想减少方案"菜单中的混乱情况.

Now I'm finished with testing but cannot find a way to uninstall the 4.3 portions ("iPhone 4.3 Simulator" and "iPad 4.3 Simulator"). I want to reduce the clutter in the Scheme menu.

Apple的Xcode listserv上没有人知道答案!

No one on Apple's Xcode listserv knew the answer!

请注意,自Xcode 4.3以来,已发生了很大变化,因此建议任何阅读此指南的人查看所有答案.像史蒂夫·摩泽(Steve Moser)这样的最新人可能对您更有用!

note that much has changed since Xcode 4.3, so suggest anyone reading this look at all the answers. The newest ones such as Steve Moser's may be of more use to you!

编辑10/2017:在Twitter上发布者Julio Carrettoni

EDIT 10/2017: Posted on Twitter by Julio Carrettoni‏

如果您是iOS开发人员,请执行以下操作:
$ xcrun simctl delete unavailable
它删除了不再使用的旧模拟器Xcode.对我来说是6Gb 我自己没有尝试过...

If you are an iOS developer, execute this:
$ xcrun simctl delete unavailable
It removes old simulators Xcode no longer use. For me it was 6Gb Did not try it myself...

[而且,我刚刚看到Russ Bishop在下面的评论中已经提到了这一点...]

[Also, I just saw Russ Bishop mentioned this in a comment below already...]

推荐答案

您是否只是尝试从Xcode包中删除4.3 SDK?

Did you tried to just delete the 4.3 SDK from within the Xcode Package?

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs

请同时删除相应的.dmg文件

please also delete the corresponding .dmg file in

〜/Library/Caches/com.apple.dt.Xcode/Downloads

~/Library/Caches/com.apple.dt.Xcode/Downloads

防止Xcode再次出现-再次安装同一软件包.

对于XCode> = 6,请参见 @ praveen-matanam的答案

for XCode >= 6 see @praveen-matanam 's answer

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

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