CUICatalog:无法找到名称:someimage@2x~ipad.png比例因子:2设备成语:1设备子类型:568 [英] CUICatalog: Can't find rendition for name: someimage@2x~ipad.png scale factor: 2 device idiom: 1 device subtype: 568
问题描述
我创建了完全适用于xcode 5的应用程序。
但是当我使用iphone 6模拟器在xcode 6上运行它时,它给了我一个错误:
CUICatalog:无法找到名称的再现:someImage@2x~ipad.png比例因子:2设备成语:1设备子类型:568
我知道这可能不是你想要的答案,但我遇到了完全相同的问题,只需重命名图像即可解决问题。 / p>
换句话说,我将原始文件复制到同一目录中的另一个文件中,名称不同。
然后我将这个新文件添加到Xcode项目并删除了第一个。
我更改了代码以反映新的图像名称:
//加载此资产目录问题:
// [imgBackground setImage:[UIImage imageNamed:@Home_BG @ 5g。 PNG]];
[imgBackground setImage:[UIImage imageNamed:@Home_BG-568h]];
我略微更改了之前开发人员的命名约定,与 Home_BG-568h一起使用@ 2x.png
。
希望这有助于某人。
I created app that perfectly worked on xcode 5. But when i run it on xcode 6 with iphone 6 simulator, it's giving me an error:
CUICatalog: Can't find rendition for name: someImage@2x~ipad.png scale factor: 2 device idiom: 1 device subtype: 568
I know this probably isn't the answer you want, but I had the exact same problem, and simply renaming the image fixed the problem.
In other words, I copied the original file that wouldn't load to another file in the same directory, with a different name.
I then added this new file to the Xcode project and removed the first one.
I changed the code to reflect the new image name:
// Asset Catalog problem loading this:
// [imgBackground setImage:[UIImage imageNamed:@"Home_BG@5g.png"]];
[imgBackground setImage:[UIImage imageNamed:@"Home_BG-568h"]];
I slightly changed the previous developer's naming convention, to go with Home_BG-568h@2x.png
.
Hope this helps someone.
这篇关于CUICatalog:无法找到名称:someimage@2x~ipad.png比例因子:2设备成语:1设备子类型:568的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!