更新时删除App沙箱中的哪些目录
我将一些下载的信息缓存在应用程序的 NSLibraryDirectory 中。然而,在最近的更新之后,用户报告在访问“库”目录中先前下载的内容时遇到问题。
哪些目录可以安全地缓存新应用程序版本的信息?苹果有这方面的文档吗?没找到。。。
非常感谢 e.
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
来自 Apple应用程序编程指南:
from Apple Application Programming Guide:
但请注意,/Library/Caches 不会在更新时保留;它甚至没有备份。
Note, however, that /Library/Caches is not preserved across updates; it's not even backed up.