phonegap IOS application size

前端 未结 2 456
感情败类
感情败类 2021-02-14 19:37

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

相关标签:
2条回答
  • 2021-02-14 20:07

    That would be the retina splash screen images.

    10MB is a normal app size, don't worry about it.

    0 讨论(0)
  • 2021-02-14 20:18

    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.

    Capture.bundle rm CDVCapture from plugins

    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. Compress PNG files

    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.

    0 讨论(0)
提交回复
热议问题