简体   繁体   English

优化iOS App文件大小

[英]Optimizing iOS App File Size

What are other work arounds to optimize the overall file size of an iOS App? 还有什么其他解决方法可以优化iOS App的整体文件大小? I have done, making my images into PNG-8 though. 我已经做了,但是将图像制作为PNG-8。

What I just noticed in my Project is, some of the files added are external classes (Classes from Github that consists of .h and .m) 我刚刚在我的项目中注意到的是,添加的一些文件是外部类(Github中的类,由.h和.m组成)

would it be better if I will just referenced these classes? 如果我仅引用这些类会更好吗? Even if one module is just 2 Files? 即使一个模块只有2个文件?

Referencing classes works only for header files, you will need to add the static library in your project. 引用类仅适用于头文件,您将需要在项目中添加静态库。 this static library will contain the compiled version of your .m files, 该静态库将包含.m文件的编译版本,

You could compile some of your classes into static libraries and then insert them to your project, however i dont think it will decrease the project size a lot, so my suggestion is to not do that 您可以将您的某些类编译到静态库中,然后将其插入您的项目中,但是我不认为这会大大减少项目的大小,所以我的建议是不要这样做

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

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