phonegap IOS应用程序大小 [英] phonegap IOS application size

查看:120
本文介绍了phonegap IOS应用程序大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用eclips和xcode4.5为android和IOS创建了phonegap应用程序



Andorid应用程序的大小为650KB



IOS应用程序的大小是9MB !!!



我创建了一个空phonegap应用程序(只是在终端上创建),并获得相同的大小



如何减少IOS应用程序大小?



谢谢!

解决方案

标准iOS应用程序包括大量图片,例如为CDVCapture插件。
如果您不使用Capture API(很可能),您可以通过删除资源文件夹中的 Capture.bundle 来保存2.3MB,并删除中的插件列表中的code> CDVCapture






当然,大部分文件大小是由各种闪屏,图标和。有一个很好的方法来最小化这些的成本。获取



整个过程应该将您的应用程式减少至少50%,请回报您能达到多少,谢谢。


I created phonegap app for both android and IOS using eclips and xcode4.5

The size of Andorid app is 650KB

The size of IOS app is 9MB!!!

I created empty phonegap app (just did create on terminal) and got the same size

How can I reduce the IOS application size ?

Thanks!

解决方案

The standard iOS App includes lots of Artwork, e.g. for the CDVCapture plugin. If you don't use the Capture API (which is likely), you could save 2.3MB by deleting the Capture.bundle in the Resources folder and removing CDVCapture from the Plugins list in the Cordova.plist.

Of course much of the filesize is caused by the various splash screens, icons and maybe artwork you use yourself. There is a very good way to minimize the cost of these. Get ImageOptim and drop your Xcode project folder on it. This will reduce the filesize of your images dramatically (without losing quality). One last step: Xcode recompresses all of the artwork, so they have a bigger filesize again (stupid, right?). Go to the Build Settings tab and type PNG into the search field. Set Compress PNG files to NO.

further reading on imageoptim & Xcode

The whole process should reduce your App by at least 50%, please report back how much you could achieve, thanks.

这篇关于phonegap IOS应用程序大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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