我运行的是Xcode4.3.1 iOS模拟器,它最初只支持iOS 5.1。
我需要使用Xcode4.3测试我的代码,所以我使用了iOS的" install“特性来安装它,如"Installing Xcode with iOS 4.3 device simulator?"中所述
现在我完成了测试,但是找不到卸载4.3部分的方法("iPhone 4.3模拟器“和"iPad 4.3模拟器”)。我想减少Scheme菜单中的杂乱。
在Apple的Xcode listserv上没有人知道答案!
编辑:请注意,自Xcode4.3以来发生了很多变化,因此建议任何阅读本文的人查看所有答案。像Steve Moser这样的最新版本可能对您更有用!
2017年10月10日编辑: Julio Carrettoni在推特上发布
如果您是iOS开发人员,请执行以下命令:
$ xcrun simctl delete unavailable
它删除了不再使用的旧模拟器Xcode。对于我来说,它是6 6Gb的,我自己没有尝试过……
另外,我刚刚看到Russ Bishop在下面的评论中提到了这一点……
发布于 2012-05-31 22:06:42
您是否尝试从Xcode包中删除4.3SDK?
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
请同时删除中相应的.dmg文件
~/库/缓存/com.apple.dt.Xcode/下载
再次prevent Xcode from re-installing相同的包。
对于XCode >= 6,请参阅 @praveen-matanam 's answer
发布于 2014-09-23 17:14:35
在Xcode 6+中,您可以简单地进入菜单>窗口>设备>模拟器并删除不需要的模拟器。
发布于 2017-09-20 14:59:19
2020年10月更新
如前所述,您可以使用xcrun
做一些事情:
xcrun simctl list devices
或xcrun simctl list --json
列出所有simulatorsxcrun simctl delete <device udid>
删除特定devicexcrun simctl delete unavailable
删除运行时不再支持的旧设备使用xcrun
可以做的更多事情(请参阅代码片段)
- `xcrun simctl boot <device udid>` to launch (multiple) simulators
- `xcrun simctl io booted recordVideo — type=mp4 ./test.mp4` to record simulator video
- `xcrun simctl io booted screenshot ./screen.png` to make screenshot of simulator
- `xcrun simctl openurl booted https://google.com` to open URL in simulator
- `xcrun simctl addmedia booted ./test.mp4` to upload photo or video file (for photos app)
- `xcrun simctl get_app_container booted <your apps bundle identifier>` to find the app container (where identifier is like *com.bundle.identifier*)
- `xcrun simctl help` to explore **more** commands
原始答案
2017年9月,Xcode 9
运行时
你可以在这里找到它们:
/Library/Developer/CoreSimulator/Profiles/Runtimes
设备
要删除设备,请转至此处:
~/Library/Developer/CoreSimulator/Devices
使用Xcode删除它们要容易得多: Xcode->Window->Devices and Simulator
帮助Xcode“忘记”运行时,并防止重新安装它们-在这里删除.dmg文件:
~/Library/Caches/com.apple.dt.Xcode/Downloads
我希望它能帮助一些人
https://stackoverflow.com/questions/10834817
复制相似问题