简体   繁体   English

如何减小我的IPA生成大小?

[英]How to reduce my ipa build size?

I have exported IPA build from Xcode 9.1 and my file size is 168 MB. 我已从Xcode 9.1导出IPA构建,并且文件大小为168 MB。 I have enabled and disabled bit code feature from build options in Xcode 9.1, But there is no change in IPA build file size it remains same as 168 MB. 我已经从Xcode 9.1的构建选项中启用和禁用了位代码功能,但是IPA构建文件大小没有变化,它仍然与168 MB相同。 I am weird about this. 我对此很奇怪。

I will appreciate if anyone can help with this. 如果有人可以提供帮助,我将不胜感激。 I really don't understand the concept of App Thinning. 我真的不了解App Thinning的概念。

I guess code size is your smallest problem, therefor you don't see much of a change. 我想代码大小是您的最小问题,因此您看不出太大的变化。 If you want to have a smaller .ipa, you need to reduce your media files. 如果要使用较小的.ipa,则需要减少媒体文件。

"App thinning" is something that happens on Apple site: Simply speaking, if a user downloads your app on a say iPhone, apple kicks out all stuff that does not match to your device, eg images for different resolutions than your phone. “稀疏应用程序”是在Apple网站上发生的事情:简单来说,如果用户在说的iPhone上下载您的应用程序,苹果会将所有与您的设备不匹配的内容排除在外,例如分辨率不同于手机的图像。 Therefore, your .ipa still contains all the data, but just the download for the end user is smaller. 因此,您的.ipa仍包含所有数据,但最终用户的下载量较小。

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

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