当您从 Apple AppStore 下载 iPhone 应用程序更新时,是部分下载还是完全重新下载?

发布于 2024-11-08 19:12:07 字数 174 浏览 0 评论 0原文

我想知道,当Apple AppStore向用户推送应用程序更新时,当用户选择下载该应用程序更新时,是该应用程序的部分更新还是完全重新安装?

假设一种极端情况,开发人员只更新了应用程序中的一张图像,并将更新提交到应用程序商店,苹果是否聪明地交付了应用程序的更新部分,或者盲目地将整个新应用程序作为更新重新交付给最终用户?

I want to know, when Apple AppStore pushes an application updates to the user, and when the user chooses to download that application update, is it a partial updates or is it a complete reinstall for the application?

Assuming an extreme case, the developer only updated one image in the application and he submitted the updates to the app store, does apple smartly delivers the updated portion of the app, or it blindly redeliver the whole new application to the end user as an update?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

最冷一天 2024-11-15 19:12:07

这是整个应用程序二进制文件的完整下载和重新安装,仅保留用户数据。这是为了减轻更新过程中任何其他不可逆转的损坏,因为如果更新本身损坏,那么只需回滚到设备上之前安装的内容即可,从而防止用户数据丢失。

来自 Apple 的开发者文档

当用户下载应用程序更新时,iTunes 会在新的应用程序目录中安装更新。然后,在删除旧安装之前,它将用户的数据文件从旧安装移动到新应用程序目录。在更新过程中保证保留以下目录中的文件:

  • /文档

  • /Library

尽管其他用户目录中的文件也可能会被移动,但您不应依赖它们在更新后仍然存在。

它并没有大声说这是一个完整的重新安装,但第一段已经很清楚地说明了原因。

It is a complete download and reinstall of the entire application binary, with only user data being preserved. This is to mitigate any otherwise irreversible corruptions during the update, since if the update itself is corrupted then it's just a matter of rolling back to what was previously installed on a device, preventing user data loss.

From Apple's developer docs:

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.

It doesn't say out loud that it's a complete reinstall, however the first paragraph makes it quite clear why it is.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文