繁体   English   中英

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

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

在编译纹理集设置为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

该项目非常简单: https : //drive.google.com/file/d/1zyt5_0MV2BYfb4H2aLGbRO3L-eC3a4to/view?usp=sharing

该项目实际上是一个空的 macOS 项目,带有一个带有单个纹理集和单个纹理的资产目录。

将解释设置为color解决这个问题,但这不是很有用。 同样将目标更改为 10.14 有效,但在其他地方出错。

这是资产目录树

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"
    }
  ]
}

更新:看起来可能是工具问题? 就像我提到的设置为 10.14 会导致资产目录构建?

更新 1:使用 Apple 创建的工单 #FB7647328

从 Xcode v11.4.1 开始,针对 10.15 的 MacOS 应用程序已修复此问题。

编辑:安装 Xcode 11.4.1 后,您可能需要删除以下文件夹中的文件/文件夹并重新启动 Xcode:

~/Library/Developer/Xcode/DerivedData/

并且可能:

~/Library/Developer/Xcode/iOS DeviceSupport/

暂无
暂无

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

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