Asset Catalog Compiler Warning Group
今天下午在消除項(xiàng)目各類警告的時(shí)候,發(fā)現(xiàn)了下面這類警告:
Asset Catalog Compiler Warning Group
一、有一類警告是這樣的:Xcode把它叫做Ambiguous Content
描述:The app icon set “AppIcon” has an unassigned child.
有圖有證據(jù):
解決方案:
點(diǎn)擊警告,在AppIcon預(yù)覽里拉到底部,發(fā)現(xiàn)多了一個(gè)未賦值的子項(xiàng),將其刪除即可。
二、還有一類警告是這樣的: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.
有圖有證據(jù):
(根據(jù)這類警告的名稱Missing Content,很明顯是對應(yīng)的文件內(nèi)容缺失了)
解決方案:
1、右鍵單擊警告項(xiàng),“Show in Finder”跳轉(zhuǎn)至本機(jī)目錄下的資源文件中。
2、選中并打開Contents.json,尋找缺失的圖片資源名稱,并將其對應(yīng)的內(nèi)容刪除,保存當(dāng)前文件。
3、重新編譯,警告消除。
總結(jié)
以上是生活随笔為你收集整理的Asset Catalog Compiler Warning Group的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 微信响应菜单点击事件php,微信开发实现
- 下一篇: 【记录十七】Sling JCR Reso