2) Data that can be downloaded again or regenerated should be stored
in the /Library/Caches directory.
……(强调我的):
4) Use the “do not back up” attribute for specifying files that should remain on device,even in low storage situations. Use this attribute
with data that can be recreated but needs to persist even in low
storage situations for proper functioning of your app or because
customers expect it to be available during offline use. This attribute
works on marked files regardless of what directory they are in,
including the Documents directory. These files will not be purged and
will not be included in the user’s iCloud or iTunes backup. Because
these files do use on-device storage space,your app is responsible
for monitoring and purging these files periodically.
Apple链接到该主题的更多detailed discussion的页面没有提及任何有关阻止缓存数据被清除的属性的内容.
所以,有人知道“不备份”属性是否实际上对于放置在/ Library / Caches中的项目“不备份和不删除”,或者文件仍然需要存储在应用程序的Documents目录中以确保当设备空间不足时,它们不会被删除?