在我的Xcode项目中,对于不同的模式,我有不同的图标,我试图通过运行脚本通过AppIcon更改ASSETCATALOG_COMPILER_APPICON_NAME:
#!/bin/bash
$ASSETCATALOG_COMPILER_APPICON_NAME="AppIcon"
if [ "$CONFIGURATION" == "Staging" ];
then
$ASSETCATALOG_COMPILER_APPICON_NAME="AppIconStaging"
elif [ "$CONFIGURATION" == "Release" ];
then
$ASSETCATALOG_COMPILER_APPICON_NAME="AppIconRelease"
fi资产目录的存在,但图标的不变。
发布于 2014-04-09 15:30:06
这是在目标下可用的构建设置:
它可以在Asset Catalog Compiler > Asset Catalog App Icon Name Set下找到
发布于 2016-06-12 04:04:16
您可以在目标的xcconfig中执行这样的操作:
ASSETCATALOG_COMPILER_APPICON_NAME = $(ASSETCATALOG_COMPILER_APPICON_NAME_$(CONFIGURATION))
ASSETCATALOG_COMPILER_APPICON_NAME_ = AppIcon
ASSETCATALOG_COMPILER_APPICON_NAME_Release = AppIconRelease
ASSETCATALOG_COMPILER_APPICON_NAME_Staging = AppIconStaginghttps://stackoverflow.com/questions/21139739
复制相似问题