- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
我这里的条目可以追溯到大量的 iOS 版本(许多 GB 用于旧的 iOS 8 版本,还有许多 iOS 6 和 7 版本)。
我不希望再关心在 Xcode 中构建应用程序以支持这些 iOS 版本(也许我会再关心 iOS 8.4 几个月),我可能会为一些较旧的 iOS 版本构建一个应用程序一时兴起,但如果我能回收 10 GB 左右的磁盘空间,我当然很乐意放弃这样做的能力。
有谁知道删除这些目录有多安全?其中可能包含什么值(value)?
最佳答案
@StephenDarlington 的回答很明确。
我还想添加对 this helpful article 的引用(和其文本镜像)我发现它更深入地介绍了其他一些类似的目录。
作者于 2015 年 10 月更新了 Xcode 7.0.1 的文章。
~/Library/Developer/Xcode/DerivedData
The Derived Data folder here contains all of your project’s intermediate build information, index and debug/release built targets. You will generally delete this data when you observe peculiar behaviour like improper indexing or slowness of Xcode. Deleting all folders(Not derived data folder itself) from derived data will just make all your projects to be recreated when you build again; rebuilding will be bit slower.
Tip: Open
Window > Projects
. Select the desired project and click the Delete button next to the Derived Data path.~/Library/Developer/Xcode/Archives
All your targets are kept in archived form in Archives folder. 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/iOS DeviceSupport
iOS Device Support folder creates a subfolder with the device version as identifier when you attach the device. 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). If you still have a device running a particular version, the directory will be recreated by Xcode when you attach the device. And, no, this has nothing to do with simulator.
Caution: You’ll want to be careful when removing files from inside
/Library
and/Users/<yourusername>/Library
as deleting the wrong files can cause applications, and even the OS, to misbehave.~/Library/Developer/CoreSimulator
Core Simulator folder is familiar for many Xcode users. It’s simulator’s territory; thats 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 menu to delete all of your app data in a Simulator.
Tip: [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject]; will print the full path to document directory folder.
Note: As we know, simulator location was moved from ~/Library/Application Support/iPhone Simulator since the Xcode 6. So, if you have not cleared out this directory, have a check.
~/Library/Caches/com.apple.dt.Xcode
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. Delete away!
~/Library/Application Support/MobileSync/Backup
Additionally, Apple iOS device automatically syncs specific files and settings to your Mac every time they are connected to your Mac machine. To be on safer side, it’s wise to use Devices pane of iTunes preferences to delete older backups; you should be retaining your most recent back-ups off course.
关于ios - ~/Library/Developer/Xcode/iOS DeviceSupport/<iOS Version>/Symbols/System/Library 消耗了 14+GB 的 Mac 磁盘空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33322832/
在用不再需要的旧东西清理磁盘后,我在 ~/Library/Developer/Xcode 中发现了 iOS DeviceSupport 文件夹这占用了近 20 GB。 类似的问题has been as
在用不再需要的旧东西清理磁盘后,我在 ~/Library/Developer/Xcode 中发现了 iOS DeviceSupport 文件夹这占用了近 20 GB。 类似的问题has been as
我收到这个错误(见下文)我一直安装了 xcode,除了要触发的更新外,没有任何变化,我可以做些什么来修复它吗? Unable to locate DeviceSupport directory. [
根据 this blog post删除 ~/Library/Developer/Xcode/iOS DeviceSupport 文件夹中不再需要的内容是安全的,但我不清楚特定 iOS 模拟器映射到哪个
Xcode 无法在装有新 9.1 iOS 版本的 iPhone 6s 上安装我的应用程序。它报告设备不合格,当我选择设备时,它说找不到开发人员磁盘镜像。事实上,有一次我去了: /Application
我知道已经有一个关于此的主题,但它已有 1 年历史了。 每当我尝试在 iPad (iOS 7.1) 上调试 FireMonkey 应用程序时,都会收到此错误: Unable to locate Dev
我想用Iphone7测试我的应用程序,IOS版本(16A5357B)不支持,我在哪里可以找到它? here是支持的版本,我想知道在哪里可以下载 最佳答案 选择你的包,移动到Xcode的package
为什么我会得到 iOS 6.0 设备支持的副本?我可以删除某人吗? 最佳答案 您会得到这些副本,因为(如您所猜)它们适用于不同的硬件和软件组合。 这些用于表示来自您的设备或现场客户设备的崩溃报告中的系
当我们将任何 iOS 设备连接到 MAC OS X 时,默认情况下 Xcode 会将设备信息复制到 ~/Library/Developer/Xcode/iOS DeviceSupport小路。我想要那
任何安装了 Xcode 11 的人都可以将 iOS 13.1.2 的 DeviceSupport 文件上传到某个地方吗?到处都找不到文件。 有一个很好的地方可以找到 DeviceSupport 文件,
我在尝试修复 EXC_BAD_ACCESS 错误时不小心删除了/Developer/Platforms/iPhoneOS.platform/DeviceSupport 文件夹。我应该删除的文件夹是:/
在 Xcode 5 上,我无法符号化崩溃报告。当我们收到从未连接到我的开发 Mac 的设备组合(iPad 型号 + iOS 版本)生成的崩溃报告时,我遇到了问题。根本原因是我在“/Library/De
在寻找 Xcode 为何如此之大的过程中,我发现 Developer>Platforms>iPhoneOS.platform>DeviceSupport 文件夹的子文件夹占用了大量空间。 由于我(显然
对于所有视频 youtube Api 响应: $.getJSON( 'http://gdata.youtube.com/feeds/api/videos/'+videoID+'?v=2&alt
当我在 iPod touch(版本 4.2.1)上运行我的应用程序时出现以下错误。我的应用程序在一点后崩溃: 无法读取/Developer/Platforms/iPhoneOS.platform/De
我这里的条目可以追溯到大量的 iOS 版本(许多 GB 用于旧的 iOS 8 版本,还有许多 iOS 6 和 7 版本)。 我不希望再关心在 Xcode 中构建应用程序以支持这些 iOS 版本(也许我
我是一名优秀的程序员,十分优秀!