运行苹果的 assetutil:
xcrun --sdk iphoneos assetutil --info Assets.car
您将获得文件中每个项目的 JSON 描述。像这样的事情:
{
"Height" : 60,
"Scale" : 1,
"RenditionName" : "D3801CE9-19F1-4CE9-97C6-7E1EFFFCAE89",
"AssetType" : "Vector",
"SizeOnDisk" : 10822,
"Name" : "mailbox",
"Idiom" : "universal",
"Width" : 99
},
注意该行"SizeOnDisk" : 10822
.
该工具执行有限的 .car 操作,运行man assetutil
了解详情。
Assets.car 似乎是 Apple 专有的存档,首次出现在 iOS 7 中。一些实用程序能够使用私有类提取其内容CUICatalog
CoreUI框架的介绍:
- 提取物 https://github.com/bartoszj/acextract
- 主题引擎 https://github.com/alexzielenski/ThemeEngine
- iOS 资源提取器 https://github.com/Marxon13/iOS-Asset-Extractor
- 资产目录修补匠 https://github.com/insidegui/AssetCatalogTinkerer
还有一个读取 .car 文件的应用程序:crunch https://pragmaticcode.com/crunch/9 美元,试用 15 天
Running strings Assets.car
回
@(#)PROGRAM:CoreUI PROJECT:CoreUI-475.1.1
IBCocoaTouchImageCatalogTool-9.0
Running find
返回 Xcode-beta 内部/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Overlays/IBCocoaTouchImageCatalogTool
,这是一个模拟器可执行文件(i386 + x86_64)。没有进一步调查,但我敢打赌,如果您在模拟器中运行该工具,它可以打开 .car 档案。