减少的iOS应用程序大小为应用程序商店 [英] Decrease iOS Application size to App Store

查看:199
本文介绍了减少的iOS应用程序大小为应用程序商店的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在应用商店提交应用程序,我需要减少其内存一点点,如果这是可能的。我想这我要去下面的描述,使我的应用程序更轻,但不是运气的方法。

详细信息

我跟着这些步骤,看看是什么原因导致这种大尺寸


  1. 请该项目的档案

  2. 分发

  3. 保存企业或特设部署

  4. 选择的.ipa 文件,并更改扩展到 .zip文件

  5. 解压它,然后打开有效载荷

  6. 显示包内容

目录

巴纽文件680 KB (当我加入那些32 KB约),我删除他们和我通过 2 MB 减少应用程序的大小。有迹象表明,采取空间,但不会显正在服用的.ipa的尺寸的约90%的其它文件,除了一个可执行文件。

问题

时可以减小可执行文件的大小?如果没有,那么你可以给我一个提示,我应该让我的应用程序在规模上更轻。

PS我用的 GitHub上 Vuforia SDK 和库EM>


解决方案

  

我怎样才能减少这种可执行文件的大小


您不能减少你的内置应用程序包里面的可执行文件的大小。这是你的code!以减少其大小的唯一方法是:


  • 剪切code。显然,你不能这样做,因为你会排除功能,使您的应用程序的工作。


  • 删除架构片。你不应该这样做,因为你想建立所有可能的架构。


话虽如此,我还的从不的生成的应用程序包内的可执行文件的任何地方接近这个大的。也许你正在测量/建筑错了:


  • 请确保您存档。闲来无事,除了归档值得测量。


  • 请确保您生成一个发布版本,当你存档。


  • 请确保您的发布版本设置包括完整的编译器优化(最小,最快)。


I am trying to submit an application in App Store, and I need to decrease its memory a little bit, if this is possible. I tried a method which I am gonna describe below to make my app lighter, but with not luck.

Details

I followed these steps to see what was causing this large size

  1. Make an archive of the project
  2. Distribute it
  3. Save for Enterprise or Ad-Hoc Deployment
  4. Select the .ipa file and changed the extension to .zip
  5. Extract it, and open Payload
  6. Show the Package Contents

Contents

I had .png files with 680 Kb (when I added those where 32 kb approximately), I deleted them and I reduced the size of application by 2 MB. There are other files that take space but not considerably, except one executable file that is taking about 90 % of the .ipa's size.

Question

Is it possible to decrease executable file's size? If not then can you give me a hint where I should look to make my app lighter in terms of size.

P.S I use third party libraries like Vuforia SDK and libraries on GitHUB

解决方案

How can I reduce the size of this executable file

You cannot reduce the size of the executable inside your built app bundle. This is your code! The only ways to reduce its size are:

  • Cut code. Obviously you can't do that because you would exclude functionality that makes your app work.

  • Remove an architecture slice. You should not do that because you want to build for all possible architectures.

Having said that... I have never generated an executable inside the app bundle anywhere near this large. Maybe you are measuring / building wrong:

  • Make sure you are archiving. Nothing else except an archive is worth measuring.

  • Make sure that you are generating a Release build when you Archive.

  • Make sure that your Release build settings include the full compiler optimization (smallest, fastest).

这篇关于减少的iOS应用程序大小为应用程序商店的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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