Reducing iOS App File Size

How to reduce the size of .ipa file

With the advent of bit code and app thinning, it's more complex to figure out the size of your app that the user will actually download.

You should make sure you are set up to support BitCode and app thinning. Those things will make the IPA file you submit to the app store larger, but the actual IPA that's delivered to the user smaller.

(BitCode uploads an intermediate binary representation of your app's code to the app store, which the app store then compiles for the target device, rather than including a "fat" binary that has separate executables for each target processor.

App thinning causes the system to split out the platform-specific and resolution-specific assets (e.g. non-retina, @2x, and @3x artwork, plus iPad and iPhone specific full-screen images, storyboards, etc.) and only deliver the assets for the user's particular device.)

Reducing iOS App file size

It is actually not surprising that the Apple recompressed files are bigger. They are optimized for fast load not small size. If you do not care about size over speed, defiantly do turn off the compression. Even if you do care about speed you can do better than Apple.

https://imageoptim.com/xcode.html

So yes, turn off the PNG compression. The first thing I would do is build the ipa. An ipa is actually a zip file so build the ipa, copy it to a folder on your mac, rename the file with a .zip extension and double click on it. This will expanded it. Find the app in the Payload folder and right mouse click on it and choose show package contents. You will see all the assets. Sort by size. I am guessing you have overly large images. At that size my guess is that the extra size is likely to be caused almost entirely by the PNG files.

Consider using non retina images for some. Honestly most people wont notice. iOS will gracefully use the non retina on retina. This can save a ton of space,

Also consider using jpeg files instead of PNG for some of the files if you do not need transparency. Jpeg files are less efficient but can be much smaller. Compare both. Depends on the extent to which the images are continuous tone.

By default PNG file are 32 bit. 24 bit color and 8 buit alpha/transparency. You can save a bit of size by going to 24 bit. You can also save a lot of size going to 16 bit color or below. At 8 bit PNG files use a color lookup table. Play with Photoshop and the save for we options at PNG with bit depth 8 and below.

I have all sorts of expensive compressing software but often use the $8

https://itunes.apple.com/us/app/lossless-photo-squeezer/id704083918?mt=12

Try the 8 bit PNG option and the JPEG options.

EDIT
I did some research. I had always know Fireworks did better PNG compression. I did not realize that there was an 8bit PNG with an 8 Bit alpha channel. Photoshop supports 8 bit with a 1 bit Alpha Channel. I have always told people to use 32 bit PNG if their transparency needed more than 1 bit. In the future I will let them know the 8 bit with 8 bit alpha may be the better route, They just can use Photoshop for the final save of the file. They just need to save a 32 bit and compress elsewhere.

http://calendar.perfplanet.com/2010/png-that-works/

David

iOS App file size not reducing after deleting photos from core data

I was having the same issue, but recording videos instead. After I recorded the video and uploaded to a server, I was deleting the videos, but the size of my Documents and Data continued to increase.

After looking what contained on my Documents and Data folder I found out that the problem was that the file on /AppData/Library/Cache/(package name)/Cache.db-wal that was increasing size. Mine it went from 24kb up to 6mb. But then, stabilized on that number. No matter how many videos I took, the size was not increasing anymore.

So you can try to figure out what is going on on your side downloading the Documents and Data content, and looking which files are increasing in size. You can download it following this instruction:

1 - in Xcode, choose Window > Devices.

2- select your device on the left.

3 - select your app from the Installed Apps list.

4- use the gear menu to either browse your app's container (Show Container) or download it to your Mac (Download Container) for offline analysis.

How to reduce the size of a React Native iOS application?

Finally, I checked my .ttf files and they are in approx 8mbs. I do search on google and download the font file in KBS and it reduces my application size less than 50%.
I hope this answer work for any other person.
Thanks



Related Topics



Leave a reply



Submit