Tuesday, February 12, 2019

How to check what is inside a Assets.car file

xcrun --sdk iphoneos assetutil --info

EXAMPLE OUTPUT:

 {
    "AssetType" : "Image",
    "BitsPerComponent" : 8,
    "ColorModel" : "Monochrome",
    "Colorspace" : "gray gamma 22",
    "DeploymentTarget" : "2018",
    "Idiom" : "universal",
    "Image Type" : "kCoreThemeOnePartScale",
    "Name" : "bluetooth_on",
    "Opaque" : false,
    "PixelHeight" : 54,
    "PixelWidth" : 54,
    "RenditionName" : "baseline_bluetooth_black_18pt_3x.png",
    "Scale" : 3,
    "SizeOnDisk" : 338,
    "Template Mode" : "template"
  },
  {
    "AssetType" : "Image",
    "BitsPerComponent" : 8,
    "ColorModel" : "Monochrome",
    "Colorspace" : "gray gamma 22",
    "DeploymentTarget" : "2018",
    "Idiom" : "universal",
    "Image Type" : "kCoreThemeOnePartScale",
    "Name" : "keypad_black_off",
    "Opaque" : false,
    "PixelHeight" : 168,
    "PixelWidth" : 168,
    "RenditionName" : "keypad_black_off@3x.png",
    "Scale" : 3,
    "SizeOnDisk" : 338,
    "Template Mode" : "automatic"
  },