本文介绍了分析iOS中的Assets.car文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图减少iOS应用程序的整体大小,目前是48MB。当我分析子文件夹时,我发现Assets.car占用了41MB。我无法打开并看到哪一个占用了那么多空间。

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.

我找不到有关Assets.car文件的任何好文档。有人可以建议如何查看内容吗?

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

推荐答案

此工具可以提取.car存档:

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

提取存档的步骤:

从github下载zip后,在Xcode中编译它以生成命令行工具。然后展开 Products 组并右键单击 cartool 文件并在finder中找到它。然后你可以像这样运行工具:

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:


  • 打开终端

  • cd / path / to / cartool

  • ./ cartool /path/to/Assets.car / path / to / outputDirectory

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

这篇关于分析iOS中的Assets.car文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 09:44