缺少资产目录编译器选项 [英] Asset Catalog Compiler Options missing

查看:619
本文介绍了缺少资产目录编译器选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将项目切换为使用资产目录来显示图标和启动图像。但是,看起来有些东西已经被搞砸了,因为资产没有内置到应用程序中。我无法确定,但我怀疑问题与我的项目/目标构建设置中缺少资产目录编译器 - 选项面板的事实有关。在新应用程序或我已切换的其他应用程序中,一旦目标使用资产目录,该面板就会出现。对于这个项目,当我启用目录(在常规选项卡下)时,我得到 ASSETCATALOG_COMPILER_APPICON_NAME ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME ,但他们列在用户定义的设置下,并且缺少
资产目录编译器中应出现的其他设置。

I just switched a project over to using Asset Catalogs for icons and launch images. It appears that something has gotten borked, though, because the assets are not getting built into the app. I can't be sure, but I suspect the problem is related to the fact that the Asset Catalog Compiler – Options panel is missing from my project/target Build Settings. In new apps, or other apps that I have switched over, once the target is using an Asset Catalog that panel will appear. For this project, when I enable an catalog (under the General tab), I get ASSETCATALOG_COMPILER_APPICON_NAME and ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME, but they are listed under User-Defined settings, and the other settings that should appear in the Asset Catalog Compiler are missing.

任何人有任何想法如何强制Xcode找到这些设置?

Anyone have any ideas how to coerce Xcode to find these settings?

推荐答案

显然构建设置赢了t正确解析与资产相关的设置,除非目标的复制捆绑资源中有资产。简单的解决方案,但我忽略了一些,因为迁移到图标和启动图像的资产目录显然并不总是自动将其自身添加到目标。

Evidently the Build Settings won't parse asset-related settings correctly unless there is an asset in the Copy Bundle Resources of the target. Simple solution, but something I overlooked, since migrating to an asset catalog for icons and launch images apparently doesn't always add itself to the target automatically.

这篇关于缺少资产目录编译器选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆