gpt4 book ai didi

ios - 更新过程中应用程序沙箱中的哪些目录被删除

转载 作者:可可西里 更新时间:2023-11-01 04:24:07 34 4
gpt4 key购买 nike

我在应用程序的 NSLibraryDirectory 中缓存了一些下载的信息。然而,在最近的更新之后,用户报告在访问 Library 目录中以前下载的内容时遇到问题。

哪些目录可以安全地缓存新应用版本的信息?有没有关于这个的苹果文档?我找不到任何...

非常感谢,即.

最佳答案

来自 Apple Application Programming Guide :

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

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

关于ios - 更新过程中应用程序沙箱中的哪些目录被删除,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4668165/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com