Reputation: 305
Running into this error when compiling a asset catalog with a texture set set to data
.
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.
Command CompileAssetCatalog failed with a nonzero exit code
The project is incredibly simple: https://drive.google.com/file/d/1zyt5_0MV2BYfb4H2aLGbRO3L-eC3a4to/view?usp=sharing
The project is effectively an empty macOS project with a Asset Catalog with a single texture set and a single texture.
Setting the interpretation to color
fixes this but this is not very useful. Also changing the target to 10.14 works but it error else where.
This is the Asset Catalogs Tree
Textures.xcassets
├── Contents.json
└── Texture.textureset
├── Contents.json
└── Universal.mipmapset
├── Contents.json
└── chest-color.png
Textures.xcassets/Content.json
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
Textures.xcassets/Texture.textureset/Content.json
{
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"interpretation" : "data"
},
"textures" : [
{
"filename" : "Universal.mipmapset",
"idiom" : "universal"
}
]
}
Textures.xcassets/Texture.textureset/Universal.mipmapset/Contents.json
{
"info" : {
"author" : "xcode",
"version" : 1
},
"levels" : [
{
"filename" : "chest-color.png",
"mipmap-level" : "base"
}
]
}
UPDATE: It looks like it could be tools problem? Like I mentioned setting to 10.14 causes the asset catalog to build?
UPDATE1: Ticket Created with Apple #FB7647328
Upvotes: 2
Views: 1923
Reputation: 305
As of Xcode v11.4.1 this issue has been fixed for MacOS applications targeting 10.15.
EDIT: Once Xcode 11.4.1 is installed you may need to delete the files/folders in the following folders and restart Xcode:
~/Library/Developer/Xcode/DerivedData/
And potentially:
~/Library/Developer/Xcode/iOS DeviceSupport/
Upvotes: 2