[英]Why would Xcode still copies images to device even though I removed them from bundle?
I used to store some pictures in my app within the device, and then decided to move them onto a server. 我曾经将一些图片存储在设备中的应用程序中,然后决定将其移动到服务器上。 However, even though I removed them from my bundle, they are still copied onto my device when I debug my app on it.
但是,即使我从捆绑软件中删除了它们,当我在其上调试应用程序时,它们仍会复制到我的设备上。
I made sure to remove them from the "Copy Bundle Resources" build phase. 我确保将其从“复制捆绑资源”构建阶段中删除。 Also, the bundle size without the pictures is 20Mb, and about 400Mb with them, and so is the archive size.
同样,不带图片的捆绑包大小为20Mb,带图片的捆绑包大小约为400Mb,存档大小也是如此。 I can confirm that when I archive my app now, it is 20Mb large as expected, but when I install it on my device, it occupies 400Mb.
我可以确认,现在存档我的应用程序时,它的大小是预期的20Mb,但是当我将其安装在我的设备上时,它占用了400Mb。
I'm confused. 我糊涂了。 Any idea what's going on?
知道发生了什么吗? Thank you.
谢谢。
You can be sure to fix this by performing the following steps. 您可以通过执行以下步骤来确保解决此问题。
If this doesn't do it, nothing will! 如果这样做不行,将一事无成!
Note: For best result, perform all of these steps before building to the device again. 注意:为了获得最佳结果,请在重新构建设备之前执行所有这些步骤。
I had this happen to me, I had to delete the app from the device and the re-build it and put it back to fix it. 我遇到了这种情况,我不得不从设备中删除该应用程序,然后重新构建它,然后放回去修复它。 This may work for you.
这可能对您有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.