I get “Command CompileAssetCatalog failed with a nonzero exit code” when trying to compile for macOS. Everything is fine for iOS. I have tried cleaning the build, removing and reimporting the textures, and even rebooting (for good measure).
Issuing the offending command on the command line, I get:
Assertion failed: (maxCountIncludingZeroTerminator > 0 && tokenCount < maxCountIncludingZeroTerminator), function CUIRenditionKeyCopy, file /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreUI/CoreUI-609.4/CoreTheme/ThemeStorage/CUIThemeRendition_Support.m, line 849