如何减小 .ipa 文件的大小 [英] How to reduce the size of .ipa file

查看:43
本文介绍了如何减小 .ipa 文件的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 swift 语言开发了 iOS 应用.

I have developed iOS app using swift language.

在生成 ipa 时,我选择 Save for Adhoc 分发,ipa 大小为 7mb.

While generating ipa i selected Save for Adhoc distribution, the ipa size is 7mb.

现在我想移动appstore,所以我选择了保存iOS应用商店部署,那么ipa大小为50mb.

Now i want to move appstore, so i selected Save for iOS app store deployment, then ipa size is 50mb.

源代码大小为 11mb.

Source code size is 11mb.

为什么差别这么大,请给我建议.

Why it is that much difference, Please suggest me.

推荐答案

随着位代码和应用精简的出现,确定用户实际下载的应用大小变得更加复杂.

With the advent of bit code and app thinning, it's more complex to figure out the size of your app that the user will actually download.

您应该确保已设置为支持 BitCode 和应用精简.这些东西会使您提交到应用商店的 IPA 文件变大,但交付给用户的实际 IPA 变小.

You should make sure you are set up to support BitCode and app thinning. Those things will make the IPA file you submit to the app store larger, but the actual IPA that's delivered to the user smaller.

(BitCode 将应用代码的中间二进制表示上传到应用商店,然后应用商店会为目标设备编译该代码,而不是包含一个胖"二进制文件,每个目标处理器都有单独的可执行文件.

(BitCode uploads an intermediate binary representation of your app's code to the app store, which the app store then compiles for the target device, rather than including a "fat" binary that has separate executables for each target processor.

应用瘦身会导致系统拆分特定于平台和特定于分辨率的资产(例如非视网膜、@2x 和 @3x 艺术品,以及 iPad 和 iPhone 特定的全屏图像、故事板等)和只为用户的特定设备交付资产.)

App thinning causes the system to split out the platform-specific and resolution-specific assets (e.g. non-retina, @2x, and @3x artwork, plus iPad and iPhone specific full-screen images, storyboards, etc.) and only deliver the assets for the user's particular device.)

这篇关于如何减小 .ipa 文件的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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