简体   繁体   English

资产目录编译 (actool) 在 Xcode 11.4 中失败

[英]Asset Catalog Compiling (actool) fails in Xcode 11.4

Running into this error when compiling a asset catalog with a texture set set to data .在编译纹理集设置为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该项目非常简单: 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.该项目实际上是一个空的 macOS 项目,带有一个带有单个纹理集和单个纹理的资产目录。

Setting the interpretation to color fixes this but this is not very useful.将解释设置为color解决这个问题,但这不是很有用。 Also changing the target to 10.14 works but it error else where.同样将目标更改为 10.14 有效,但在其他地方出错。

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?就像我提到的设置为 10.14 会导致资产目录构建?

UPDATE1: Ticket Created with Apple #FB7647328更新 1:使用 Apple 创建的工单 #FB7647328

As of Xcode v11.4.1 this issue has been fixed for MacOS applications targeting 10.15.从 Xcode v11.4.1 开始,针对 10.15 的 MacOS 应用程序已修复此问题。

EDIT: Once Xcode 11.4.1 is installed you may need to delete the files/folders in the following folders and restart Xcode:编辑:安装 Xcode 11.4.1 后,您可能需要删除以下文件夹中的文件/文件夹并重新启动 Xcode:

~/Library/Developer/Xcode/DerivedData/

And potentially:并且可能:

~/Library/Developer/Xcode/iOS DeviceSupport/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM