swift生成的IPA非常大,大约5MB [英] IPA generated by swift is so big, about 5MB

查看:99
本文介绍了swift生成的IPA非常大,大约5MB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚使用swift语言创建了一个简单的项目,然后我编译并归档它以生成.ipa文件。 IPA文件太大了,大约5 MB。

I have just create a simple project using swift language, then i compile and archive it to generate .ipa file. IPA file is so big, it is about 5 MB.

是不是正确(没问题)?当我在Objective-C中创建它时,它只有大约500kb。

is it right(no problem) at there? when i create it in Objective-C, it is only about 500kb.

推荐答案

是的,这是正确的。包含整个Swift语言的库必须嵌入到IPA中。这些库是应用程序的一部分,不是系统的一部分 - 因为Swift必须工作甚至具有向后兼容性,部分原因是它不断变化(独立于系统更新),部分原因是为了在iOS 7上工作(其中)系统从未听说过Swift)。它们的大小约为5MB。

Yes, that's about right. The libraries containing the entire Swift language have to be embedded in the IPA. Those libraries are part of the app, not part of the system - because Swift has to work even with backwards compatibility, in part because it is constantly changing (independently of system updates), and in part in order to work on iOS 7 (where the system has never heard of Swift). And they are about 5MB in size.

这篇关于swift生成的IPA非常大,大约5MB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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