Asset Catalog Compiler Warning Group
今天下午在消除項目各類警告的時候,發現了下面這類警告:
Asset Catalog Compiler Warning Group
一、有一類警告是這樣的:Xcode把它叫做Ambiguous Content
描述:The app icon set “AppIcon” has an unassigned child.
有圖有證據:
解決方案:
點擊警告,在AppIcon預覽里拉到底部,發現多了一個未賦值的子項,將其刪除即可。
二、還有一類警告是這樣的:Xcode把它叫做Missing Content
描述:
The file “Default.png” for the image set “LaunchImage” does not exist.
The file “Default@2x-1.png” for the image set “LaunchImage” does not exist.
The file “Default-568h@2x-1.png” for the image set “LaunchImage” does not exist.
有圖有證據:
(根據這類警告的名稱Missing Content,很明顯是對應的文件內容缺失了)
解決方案:
1、右鍵單擊警告項,“Show in Finder”跳轉至本機目錄下的資源文件中。
2、選中并打開Contents.json,尋找缺失的圖片資源名稱,并將其對應的內容刪除,保存當前文件。
3、重新編譯,警告消除。
總結
以上是生活随笔為你收集整理的Asset Catalog Compiler Warning Group的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 微信响应菜单点击事件php,微信开发实现
- 下一篇: 网易互娱AI Lab视频动捕技术iCap