【发布时间】:2014-10-26 02:18:22
【问题描述】:
我收到以下错误:
CUICatalog: Invalid asset name supplied: (null), or invalid scale factor: 2.000000
Could not load the "(null)" image referenced from a nib in the bundle with identifier "com.example.project"
由于我在 Interface Builder 中为选项卡栏项设置了“选定图像”,因此出现错误:
我已将文件添加到 Xcode 中:
设置写入故事板文件:
<tabBarItem key="tabBarItem" title="..." image="config.png" selectedImage="config_filled.png" id="5Wh-7m-Y4H"/>
我正在使用 Xcode 6 Beta 6
我知道Error: CUICatalog: Invalid asset name supplied: (null), or invalid scale factor : 2.000000,但这对我没有帮助。
什么可能导致资产名称为空?我已经重新输入了图像名称,我也尝试过清理和重建,但错误仍然存在(并且没有图像出现)
【问题讨论】:
-
我得到了完全相同的错误,并且没有提到无效的比例因子。我正在使用提供所有图像尺寸的资产目录。这似乎是一个明确的错误。我的最终解决方案是简单地排除所选图像,因为我认为它不值得进一步追求。
-
@GabrielCartier 请仔细阅读我的问题,我在提问时已经检查过了。