简体   繁体   English

如何最小化ipa大小?

[英]how to minimize ipa size?

I have created archive file. 我已经创建了存档文件。

  1. Right click on it and select show in finder and 右键单击它,然后选择在查找器中显示,然后
  2. Select myapp.xarchinve right click on it select 选择myapp.xarchinve右键单击它,选择
  3. Show content application and then 显示内容申请,然后
  4. Got to application folder and 转到应用程序文件夹并
  5. Select myapp.app and right click on it and 选择myapp.app并右键单击它,然后
  6. Select myapp exicutable file. 选择myapp可执行文件。

It shows size 19 mb I want to minimize this size but I don't know why it shows that much size. 它显示的大小为19 mb,我想最小化此大小,但我不知道为什么它显示这么大的大小。

Appreciate for help 感谢帮助

19MB is not that much, it's not at all certain you can get it much smaller. 19MB并不多,也无法确定您可以使它变得更小。

That said, in Build Settings of your project, do a search for strip and check that the linked project is being stripped 就是说,在项目的“ Build Settings中,搜索strip然后检查链接的项目是否已被剥离

(you could also strip the debug symbols, but then crash logs will have little to no info in them) (您也可以去除调试符号,但是崩溃日志中几乎没有信息)

  • Do you have any sound files that can be large? 您是否有可能很大的声音文件?
  • Do you have any extern frameworks included? 您是否包含任何外部框架? (These are most likely to increase space so much and you can't do anything about it for now..until iOS 9 will appear) (这些很有可能会增加太多空间,因此您暂时无法做任何事情。直到iOS 9出现)
  • Do you have any high-quality and large images? 您有高质量和大图像吗?
  • Check your Bundle to see what files you have there that can increase your space by that much 检查您的捆绑包,看看那里有哪些文件可以增加您的空间

I don't know what your app does but 19mb is not very much in my opinion. 我不知道您的应用程序会做什么,但是我认为19mb并不多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM