本文翻译自:Can I delete data from iOS DeviceSupport?

After going through and cleaning my disk with old things that I didn't need anymore, I came across the iOS DeviceSupport folder in ~/User/Library/Developer/Xcode which was taking nearly 20 GB. 在经历了我不再需要的旧东西并清理我的磁盘之后,我遇到了~/User/Library/Developer/Xcode中的iOS DeviceSupport文件夹,它占用了近20 GB。

A similar question has been asked before , but since then many things have changed and I would like an up-to-date answer. 之前已经提出过类似的问题,但从那时起,许多事情都发生了变化,我想要一个最新的答案。

As long as I have the version I use for testing, can I delete the older/unused versions without breaking anything? 只要我有用于测试的版本,我可以删除旧的/未使用的版本而不会破坏任何东西吗?


#1楼

参考:https://stackoom.com/question/21aD8/我可以从iOS-DeviceSupport中删除数据吗


#2楼

The ~/Library/Developer/Xcode/iOS DeviceSupport folder is basically only needed to symbolicate crash logs. 基本上只需要~/Library/Developer/Xcode/iOS DeviceSupport文件夹来表示崩溃日志。

You could completely purge the entire folder. 您可以完全清除整个文件夹。 Of course the next time you connect one of your devices, Xcode would redownload the symbol data from the device. 当然,下次连接其中一个设备时,Xcode会重新下载设备中的符号数据。

I clean out that folder once a year or so by deleting folders for versions of iOS I no longer support or expect to ever have to symbolicate a crash log for. 我每年清理一次该文件夹一次左右,删除iOS版本的文件夹,我不再支持或期望用来表示崩溃日志。


#3楼

More Suggestive answer supporting rmaddy's answer as our primary purpose is to delete unnecessary file and folder: 支持rmaddy答案的更多暗示性答案,我们的主要目的是删除不必要的文件和文件夹:

  1. DeviceSupport - You can keep the simulator which log's you may need in future. DeviceSupport - 您可以保留模拟器将来可能需要的日志。 It's symbolicate crash logs for different device/iOS. 它是不同设备/ iOS的符号崩溃日志。

  2. Delete this folder after every few days interval 每隔几天后删除此文件夹

     ~/Library/Developer/Xcode/DerivedData 
  3. All your targets are kept in the archived form in Archives folder. 您的所有目标都保存在Archives文件夹中的存档表单中。 Before you decide to delete contents of this folder, here is a warning - if you want to be able to debug deployed versions of your App, you shouldn't delete the archives 在您决定删除此文件夹的内容之前,这是一个警告 - 如果您希望能够调试应用程序的已部署版本,则不应删除存档

     ~/Library/Developer/Xcode/Archives 
  4. iOS Device Support folder creates a subfolder with the device version as an identifier when you attach the device. 当您附加设备时,iOS Device Support文件夹会创建一个子设备,其中设备版本作为标识符。 Most of the time it's just old stuff. 大多数时候它只是旧东西。 Keep the latest version and rest of them can be deleted (if you don't have an app that runs on 5.1.1, there's no reason to keep the 5.1.1 directory/directories). 保留最新版本,其余部分可以删除(如果您没有在5.1.1上运行的应用程序,则没有理由保留5.1.1目录/目录)。

     ~/Library/Developer/Xcode/iOS DeviceSupport 
  5. Core Simulator folder is familiar for many Xcode users. Core Simulator文件夹对许多Xcode用户来说都很熟悉。 It's simulator's territory; 这是模拟器的领地; that's where it stores app data. 这就是它存储应用数据的地方。 It's obvious that you can toss the older version simulator folder/folders if you no longer support your apps for those versions. 很明显,如果您不再支持这些版本的应用程序,则可以折腾旧版本的模拟器文件夹/文件夹。 And, it's safer to use 'Reset Content and Settings' option from the menu to delete all of your app data in a Simulator. 而且,使用菜单中的“重置内容和设置”选项可以更安全地删除模拟器中的所有应用数据。

     ~/Library/Developer/CoreSimulator 
  6. Caches are always safe to delete since they will be recreated as necessary. 高速缓存总是可以安全删除,因为它们将根据需要重新创建。 This isn't a directory; 这不是目录; it's a file of kind Xcode Project. 它是一个Xcode项目的文件。 Delete away! 删除!

     ~/Library/Caches/com.apple.dt.Xcode 
  7. Additionally, Apple iOS device automatically syncs specific files and settings to your Mac every time they are connected to your Mac machine. 此外,Apple iOS设备每次连接到Mac计算机时都会自动将特定文件和设置同步到Mac。 To be on safe side, it's wise to use Devices pane of iTunes preferences to delete older backups; 为了安全起见,最好使用iTunes首选项的“设备”面板删除旧备份; you should be retaining your most recent back-ups off course. 你应该保留你最近的备份课程。

     ~/Library/Application Support/MobileSync/Backup 

I got back about 40GB! 我回来了大约40GB! For more help go to http://ajithrnayak.com/post/95441624221/xcode-users-can-free-up-space-on-your-mac 如需更多帮助,请访问http://ajithrnayak.com/post/95441624221/xcode-users-can-free-up-space-on-your-mac


#4楼

As it's not recommended to delete final versions because of the symbolicate crash logs, you can still delete all beta versions as you won't need them. 由于符号化崩溃日志不建议删除最终版本,因此您仍然可以删除所有测试版本,因为您不需要它们。 Those are the ones with a longer id after the version number. 这些是版本号后面具有更长ID的那些。

See screenshot comparison from 12.3.1 (final) and 12.4 (beta) 查看12.3.1(最终)和12.4(测试版)的屏幕截图对比


#5楼

Yes, you can delete data from iOS device support by the symbols of the operating system, one for each version for each architecture. 是的,您可以通过操作系统的符号从iOS设备支持中删除数据,每个架构的每个版本都有一个。 It's used for debugging. 它用于调试。 If you don't need to support those devices any more, you can delete the directory without ill effect 如果您不再需要支持这些设备,则可以删除该目录而不会产生不良影响

我可以从iOS DeviceSupport中删除数据吗?相关推荐

  1. 在DataList控件中删除数据记录

    (一)在DataList控件中删除记录的设计要点 在DataList控件中删除数据记录的设计相对简单一点.该功能设计的重点在于当用户单击[删除]按钮时,程序如何判断要删除的是哪一行.使DataList ...

  2. Oracle中删除数据的一个小技巧

    在我带的某个Project中,在开发阶段需要Reload相同的Data到Oracle中来进行测试,因此需要不断的删除数据,简单的Delete操作似乎就OK了,但其实不然.我们到知道建表的时候需要Tab ...

  3. .Net中删除数据前进行外键冲突检测

    在编写数据库系统中为了保证系统中数据的一致性最简便且安全的方法就是在DBMS中建立外键约束,但删除主键数据时如果违反了外键约束,尽管DBMS会给出错误提示,如SQL Server的提示信息" ...

  4. Android 第十五课 如何使用LitePal从SQLite数据库中删除数据(十四课用来保留讲解如何向SQLite数据库中存入数据)

    使用LitePal删除数据的方式主要有两种,第一种就是直接调用已存对象的delete()方法,所谓已存储对象就是调用过save()方法的对象,或者说是通过LitePal提供的查询API查出来的对象,都 ...

  5. 从链表中删除数据的时间复杂度真的是O(1)吗?

    本文经授权转载自微信公众号:小争哥(xiaozhengge0822),作者:小争哥 数组和链表作为最基础的数据结构,在面试的时候,经常会被问到.最常被问到的一个问题,那就是,对比一下数组和链表.如果你 ...

  6. jsp在mysql中删除数据_如何在jsp页面中删除数据库中的数据

    如何在jsp页面中删除数据库中的数据 各位大虾! 我想在jsp页面上写一个按钮功能,从而动态的删除数据库中的一行数据. 不知道怎么实现 这是我写的一段代码 数据库是MySql UserBean p3= ...

  7. GDAL书籍中删除数据勘误(C#语言)

    GDAL书籍中关于C#版本删除数据的时候,不能完全删除数据,由于我对C#不了解导致代码有点问题,非常感谢@Bingoyin指出并给出修改方案.此外对于栅格图像的删除.重命名,矢量数据的删除和重命名都有 ...

  8. namenode的元数据会被删除吗_从链表中删除数据的时间复杂度真的是O(1)吗?

    本文转载自微信:小争哥(xiaozhengge0822),作者:小争哥 数组和链表作为最基础的数据结构,在面试的时候,经常会被问到.最常被问到的一个问题,那就是,对比一下数组和链表.如果你是Java工 ...

  9. mysql中用于删除数据的是什么意思_从mysql中删除数据最安全的方法是什么? (PHP / MySQL的)...

    我想允许用户和我(管理员)删除mysql中的数据. 我曾经有过remove.php,可以从需要删除的内容中获取$_GETs,例如- remove.php?action = post& post ...

最新文章

  1. 让人头痛的大事务问题到底要如何解决?
  2. 5.3.4 TCP流量控制
  3. Chrome 技术篇-F12开发者工具清理缓存,高级、专业清浏览器缓存,storage和cache都指什么、区别
  4. Machine Learning from Start to Finish with Scikit-Learn
  5. Github | Facebook人工智能实验室出品Pythia模块框架
  6. js对象赋值只保留存在的属性_js对象的创建对象模式和继承模式(上)---构建对象模式...
  7. Python cmp函数在Python3.4版本后就不存在了。全部换成了operator库了
  8. 通过命令行编译器来编译运行程序
  9. 【C++笔记】字符串、向量和数组
  10. C语言入门——适合练手的密码本项目
  11. (基础)Promise中then()方法使用,多次调用、链式调用
  12. 非线性方程模型及求解实例
  13. 咖啡技术培训:传统意式咖啡菜单制作配方及流程
  14. 关于Likelihood 和 Probability的差别
  15. Apache Flink 1.14.4 on yarn ha环境搭建
  16. 如何找自己想要的项目?看这里告诉你答案
  17. 大学生、办公人员电脑必备的10款实用软件 简直是太好用了
  18. 鲁大师Q1季度电脑硬件报告:intel 12代酷睿笔记本霸榜,显卡小幅降价
  19. C语言day1(数据类型、变量本质)
  20. 分布式系统稳定性建设指南

热门文章

  1. Handler消息机制(八):Handler内存泄漏的场景有哪些,如何避免
  2. Handler消息机制(四):子线程可以创建Handler吗
  3. 深入探索C++对象模型学习笔记2
  4. 算法------------数组----------------两个数组的交集 II
  5. Eclipse编译运行Native代码步骤详解
  6. java打包没有src_maven 打包时,src/main/java目录下的xml等资源文件没有打包进去的问题...
  7. linux命令速查手册_值得收藏!Linux系统常用命令速查手册
  8. java executor_Java 动态语言支持
  9. 【Android UI设计与开发】第07期:底部菜单栏(二)Fragment的详细介绍和使用方法
  10. HDU 3625 Examining the Rooms【第一类斯特灵数】