Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Analysing Assets.car file in iOS

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?

like image 709
Rajeev Avatar asked Mar 25 '14 09:03

Rajeev


People also ask

What is a car file in Mac?

Posted Oct 18, 2018. An Asset Catalog is an important piece of any iOS, tvOS, watchOS and macOS application. It lets you organize and manage the different assets used by an app, such as images, sprites, textures, ARKit resources, colors and data.


1 Answers

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
like image 55
lewis Avatar answered Oct 08 '22 21:10

lewis