哪个目录中的应用程序的更新过程中的沙盒将被删除 [英] Which directories are deleted in the sandbox of an App during update

查看:170
本文介绍了哪个目录中的应用程序的更新过程中的沙盒将被删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我缓存在一个应用程序中的一些NSLibraryDirectory下载的信息。最近的一次更新后然而,用户报告访问previously下载在图书馆目录中的内容有问题。

I cache some downloaded information in the NSLibraryDirectory in an App. However after a recent update the users report having problems accessing the previously downloaded content in the Library directory.

哪些目录是安全的缓存在新的应用程序版本的信息?是否有任何这苹果文档?我找不到任何...

Which directories are safe to cache information over new app versions? Is there any Apple documentation on this? I couldn't find any...

非常感谢,

thanks a lot, e.

推荐答案

href=\"https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/PerformanceTips/PerformanceTips.html#//apple_ref/doc/uid/TP40007072-CH7-SW18\"相对=nofollow>苹果应用程序编程指南:

from Apple Application Programming Guide:

文件保存在应用程序更新
  当用户下载的应用程序
  更新的iTunes安装在更新
  一个新的应用程序目录。然后,它
  从移动用户的数据文件
  旧的安装到新
  在删除之前的应用程序目录
  旧的安装。在文件
  下面的目录中保证
  要在更新过程中pserved $ P $
  过程:

Files Saved During Application Updates When a user downloads an application update, iTunes installs the update in a new application directory. It then moves the user’s data files from the old installation over to the new application directory before deleting the old installation. Files in the following directories are guaranteed to be preserved during the update process:

<Application_Home>/Documents
<Application_Home>/Library 


  
  

虽然在其他用户文件
  目录也可以移动过,
  你不应该依赖它们是
  更新后present。

Although files in other user directories may also be moved over, you should not rely on them being present after an update.

这篇关于哪个目录中的应用程序的更新过程中的沙盒将被删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆