gpt4 book ai didi

iphone - 当 iOS 安装应用程序更新时到底会发生什么?

转载 作者:行者123 更新时间:2023-12-03 18:20:44 24 4
gpt4 key购买 nike

安装应用更新时,官方记录的行为是什么?

This question询问同样的事情,但是 answer ,它表示应用程序包已被替换,但所有其他文件夹均未受影响,并且未提供任何文档。我有reason相信应用程序包实际上没有被替换,所以我想确定一下。

请链接到文档!

最佳答案

来自iOS Application Programming Guide (请参阅“文件系统”中的“应用程序更新期间保存的文件”部分):

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.

您在 Why isn't my iPhone app bundle replacing the old one during an update? 中看到的内容问题是 Xcode 无法正确检测/将更新的资源推送到设备的问题,这是一个非常不同的场景。

关于iphone - 当 iOS 安装应用程序更新时到底会发生什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5225974/

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