Failure to build in Xcode 13.3 when adding a large number of image assets

Hi Community,

I am using Xcode 13.3 on Mac Monterey 12.4.
I am currently working on a project where I need to show around 1000 brand logos for better user experience.

For the time being, I am adding png files of the logos to Assets.xcassets directly.
Everything worked fine until the number of png files exceed around 350.
When I try to build the project, Xcode just throws me the following error over and over again:

“Terminating app due to uncaught exception ‘IBPlatformToolFailureException’, reason: 'The tool closed the connection (AssetCatalogSimulatorAgent)”
ibtoold 0x00000001048dc9cCommand CompileAssetCatalog failed with a nonzero exit code

I have tried the following things but none of them worked:

  • Clean build folder/derived data in the developer folder
  • Remove Japanese characters from the file names
  • Restart Xcode and Mac several times

I have also googled the issue, but failed to find a solution.
Since I am on a quite tough schedule actually, so I will really appreciate if anyone can offer any suggestion.
Thanks very much in advance!

What’s the size of the images total all together?

This StackOverflow post mentions how there is a limit, eventually

Hi Mikaela,

Thanks a lot for your reply.
Very informative.

Actually, my images are only around 10kb each.
I managed to find a workaround by hosting these files on a remote server.

Thanks again though.