Bundle analysis

Hello :waving_hand:
I have a few questions, bugs, and features suggestions for the bundle analysis tool:

  1. In the File Breakdown view, would be very useful to be allowed to filter by type, for example to just have a list of the biggest assets in the repo
  2. Which device does the Download size and Install size refer to? I guess it depends on the device because it would download 1x, 2x, or 3x assets accordingly. Would be an interesting info to show in the info, or even better would be nice to be able to select the device and get the related size.
    I have tried to delete all the 1x assets as they are only needed by very old device, and it seems both sizes went down, is it expected?
  3. Drilling down in the Bundle Size Analysis doesn鈥檛 work, the same entries (some even duplicated) are shown both at the top and while digging (see attached screenshots)

  1. In the Insight section, some duplicates point to the same file (see attached screenshot)

Hey!

Thanks a ton for this feedback, that鈥檚 very useful.

Agree, I flagged an issue here: Add filter to File Breakdown in a bundle detail 路 Issue #8957 路 tuist/tuist 路 GitHub

I believe at least the .ipa and the .xcarchive are not exported for a specific device. Are you talking about .app bundles here?

I haven鈥檛 been able to reproduce this one. Would you mind sending me a link and, ideally, also the bundle itself via a DM?

We鈥檒l fix that: False positive duplicates in the bundle analysis 路 Issue #8958 路 tuist/tuist 路 GitHub

Not 100% sure but I think when you download an app from the app store it only downloads the assets for your device (so only the 2x or the 3x), and that鈥檚 what I was expecting to see in the Download size here

Another great improvement would be analyzing the code and report unused assets, localizations, etc.
I guess it鈥檚 not something you can infer from the bundle, but I think is related :smiley:

I also see some fonts being reported as duplicate even if one is for the iOS app and the other is for the watchOS app.
AFAIK the apps are downloaded separately, so unduplucating it wouldn鈥檛 bring any effective advantage to the user, isn鈥檛 it?