6

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.

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

4

1 回答 1

24

显然,除非目标的Copy Bundle Resources中有资产,否则Build Settings将无法正确解析资产相关设置。简单的解决方案,但我忽略了一些事情,因为迁移到图标和启动图像的资产目录显然并不总是自动将自身添加到目标中。

于 2013-10-02T22:43:51.397 回答