iOS App 版本更新后,Library/cache 文件夹会不会被覆盖(或清空)?

 我来答
C我想我是海
2016-04-28 · 知道合伙人软件行家
C我想我是海
知道合伙人软件行家
采纳数:1187 获赞数:4514
IT工程师

向TA提问 私信TA
展开全部

iOS APP版本更新之后,Library/cache文件夹是不会被覆盖或者清空的。

应用更新只更新.app文件. Document 和 library 的差别是前者会被iCloud 备份,所以不太重要的就别往Document目录下存了。temp文件夹会不定期被系统清理。

这个可以参考苹果的官方网站知道:

  1. Only documents and other data that is user-generated, or that
    cannot otherwise be recreated by your application, should be stored in
    the <Application_Home>/Documents directory and will be automatically backed up by iCloud.

  2. Data that can be downloaded again or regenerated should be stored in the <Application_Home>/Library/Caches
    directory. Examples of files you should put in the Caches directory
    include database cache files and downloadable content, such as that used
    by magazine, newspaper, and map applications.

  3. Data that is used only temporarily should be stored in the <Application_Home>/tmp
    directory. Although these files are not backed up to iCloud, remember
    to delete those files when you are done with them so that they do not
    continue to consume space on the user’s device.

推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式