加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

iphone – 当iOS安装对应用程序的更新时,究竟发生了什么?

发布时间:2020-12-15 02:00:42 所属栏目:百科 来源:网络整理
导读:安装应用程序更新时的官方记录行为是什么? This question询问相同的事情,但answer表示应用程序包被替换,但所有其他文件夹未被触动,不提供任何文档。我有reason认为,应用程序包实际上没有被替换,所以我想知道肯定。 请链接到文档! 解决方法 从 iOS App
安装应用程序更新时的官方记录行为是什么?

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无法正确检测/推送更新的资源到设备的问题,这是一个非常不同的情况。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读