9

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!

Sharon Mantin
  • 93
  • 1
  • 3

2 Answers2

12

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.

  • @SharonMantin Do you have an universal App, or just an iPad or iPhone version? Because if you don't want to support let's say the iPad you could completly delete its artwork. Report back so I can edit/expand my answer. – Stephan Bönnemann-Walenta Dec 05 '12 at 21:50
  • I am using xcode 6 and swift and facing a similar issue, do you have any additional tips for that? – Michael Dec 05 '14 at 17:10
1

That would be the retina splash screen images.

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

Tom Clarkson
  • 16,074
  • 2
  • 43
  • 51