簡體   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