简体   繁体   English

ipa文件大小问题

[英]Ipa file size issue

I'm new in IOS development. 我是IOS开发的新手。 I got problem with my .ipa file. 我的.ipa文件有问题。 I don't use any pod library, and my assets folder size is 5.6 MB . 我没有使用任何Pod库,并且资产文件夹的大小为5.6 MB But when I export my .ipa file , it becomes 66 MB . 但是,当我导出.ipa文件时,它变为66 MB How can I decrease the size of my .ipa file? 如何减小.ipa文件的大小? I imported only SWRevealController class. 我只导入了SWRevealController类。 It's a simple app (Also I use 6 NavigationController classes). 这是一个简单的应用程序(我也使用6个NavigationController类)。 Is it normal? 正常吗 How can I fix that? 我该如何解决?

Yes thats absolutely normal. 是的,那绝对是正常的。 App thining is done at the app store level. 应用程序精简是在应用程序商店级别完成的。 Whenever you create .ipa file it consists of all the configurations needed for all the devices it supports. 每当您创建.ipa文件时,它都会包含它支持的所有设备所需的所有配置。 But whenever a user will download the app from the store he/she will get app size of lesser size , as only the relevant config would have been installed. 但是,每当用户从商店下载应用程序时,他/她都会得到较小尺寸的应用程序,因为只会安装相关的配置。

If you know that the issue is at the assets catalog file, try to unpack it with a tool like AssetCatalogTinkerer and see whether there is an oversized asset. 如果您知道问题出在资产目录文件中,请尝试使用AssetCatalogTinkerer之类的工具将其解压缩,然后查看是否存在资产过大的情况。 It is possible that an optimized asset is larger than the original, in this case you'll have to tinker around the asset. 优化的资产可能大于原始资产,在这种情况下,您将不得不修改资产。

It is also important to understand that it is expected to have a different size of an archive, even the one thinned for a specific device, and download size when uploaded to the App Store. 同样重要的是要理解,它的存档大小可能会有所不同,即使是针对特定设备而变薄的存档,在上传至App Store时也会下载大小。 This is caused by additional encryption at the App Store and usually affects the executable part. 这是由App Store的附加加密引起的,通常会影响可执行部分。 You can find some basic tips at Technical Q&A QA1795 Reducing the size of my App , it also explains how you can check the real expected download size. 您可以在技术问答QA1795上找到一些基本技巧,以减小我的应用程序的大小 ,还说明了如何检查实际的预期下载大小。

.ipa file size is not your application size, it is total size of all your app architectures. .ipa文件大小不是您的应用程序大小,它是所有应用程序体系结构的总大小。 When you can change your architectures, the size will decreases. 当您可以更改体系结构时,大小将减小。

If you want to find out the size of each architecture, you can change your target device when you export application for AD-HOC or Development. 如果要找出每种体系结构的大小,则可以在导出用于AD-HOC或开发的应用程序时更改目标设备。

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

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