Compiling Asset catalog takes a very long time when modifying a single image

When modifying a single image, it takes a very long time to compile asset catalog.
It takes the same time wheather I modified a single or multiple images.

I believe any modification in any image, triggers compiling the whole catalog.


Is there a way to compile the only modified image only?


I am using vector images.

Same is happening to me.
I am however using a very old macbook (from 2009 !!) but with 8GB RAM.

I am wondering if a new macbook will solve the issue.

Which version of XCode ? How much how long ?

Did you call Instruments to check what is happening ?


Sure, the age of Macbook, probably old XCode version, and limited memory are no good for speeding up this type of operation. But if MacBook still working well, it is probably something you can support.

Same happens to me, it is a quite big project with arround 700 icons and as soon I change

  • an image or
  • the branch or
  • use another simulator

asset compilation takes over 2 minutes.


I have a maxed out 2017 15 inch MBP.

For me the compiling the 2 .xcasset files (asset catalogue) is taking more than 21 minutes. 1 xcasset file is 140 MB and 2 xcasset is 11 MB.
Using 2020 MacBookPro with i5 2Ghz processor, 16 GB Ram.

I don't know literally what Xcode is doing to compile xcasset, it doubled my build time. I need to build 20 apps and see the impact now.
Compiling Asset catalog takes a very long time when modifying a single image
 
 
Q