为什么我的iPhone应用程序捆绑包在更新期间没有替换旧的? [英] Why isn't my iPhone app bundle replacing the old one during an update?

查看:51
本文介绍了为什么我的iPhone应用程序捆绑包在更新期间没有替换旧的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从一个以 foo.png 作为资源的应用程序开始,并安装了该应用程序(在模拟器中或在设备上).如果我删除 foo.png ,进行干净的构建等并安装,则它 still 会显示在模拟器或设备上的捆绑包中!

I'm starting with an app that has foo.png as a resource, and the app is installed (either in the simulator or on the device). If I delete foo.png, do a clean build, etc., and install, then it still shows up in the bundle on the simulator or device!

但是我知道在复制到模拟器或设备之前,该文件不在捆绑包中(例如:

But I know the file isn't in the bundle before copying to the simulator or device (for example:

  1. 我可以看到它不在构建文件夹中.
  2. 如果我从模拟器或设备中删除该应用,然后安装,则 foo.png 不会显示在模拟器或设备.
  1. I can see it's not there in the build folder.
  2. If I delete the app from the simulator or device, and then install, then foo.png doesn't show up on the simulator or device.

因此,似乎在更新时不会替换应用程序捆绑包;相反,它仅复制新文件并替换更新的文件.(我可以确认确实是 ,确实可以正确复制和替换文件.)

So it seems that when updating, it doesn't replace the app bundle; instead, it only copies new files and replaces updated ones. (I can confirm that it does, in fact, copy and replace files properly.)

为什么不替换整个应用程序包?

Why isn't it replacing the entire app bundle?

推荐答案

如果使用临时构建通过iTunes更新应用程序,您将看到.app捆绑包将被完全替换,并且旧资源(例如foo)也将被替换.原始帖子中描述的png文件将被删除.

If you update your application through iTunes using an ad hoc build you will see that your .app bundle will be replaced completely and old resources, such as the foo.png file described in the original post will be removed.

这篇关于为什么我的iPhone应用程序捆绑包在更新期间没有替换旧的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆