Analysing Assets.car file in iOS

Rajeev picture Rajeev · Mar 25, 2014 · Viewed 55.6k times · Source

I have trying to reduce the overall size of my iOS application which is currently 48MB. When I analyze sub folders, I found Assets.car is taking 41MB. I am not able to open and see which one is taking that much space.

I couldn't find any good documentation regarding Assets.car file. Can someone suggest how to view the contents?

Answer

lewis picture lewis · Apr 6, 2015

This tool can extract a .car archive: https://github.com/steventroughtonsmith/cartool

Steps to extract archive:

Once you've downloaded the zip from github, compile it in Xcode to generate the command line tool. Then expand the Products group and right click on the cartool file and locate it in finder. You can then run the tool like so:

  • open terminal
  • cd /path/to/cartool
  • ./cartool /path/to/Assets.car /path/to/outputDirectory