无法加载从设备上运行的包中的nib引用的映像 [英] Could not load the image referenced from a nib in the bundle running on device
问题描述
SplitView[1290:307] Could not load the "canary04.png" image referenced from a nib in the bundle with identifier "xx.co.mycompany.ipad.SplitView"
我只在运行时遇到错误装置。在模拟器中运行没有问题。
I only get the error when running on the device. There are no problems running in simulator.
我在界面构建器中使用UIImageView直接使用图像。
I am using the image directly in interface builder with an UIImageView.
编辑:我已经为不同的笔尖添加了一个不同的新图像,这没有问题。
I have added a different new image to a different nib and that works no problems.
任何人都有任何想法?
推荐答案
iOS设备上的文件系统区分大小写,因此很可能是一个案例问题。 (Mac OS X通常不区分大小写,因此您在模拟器中没有看到此问题。)
The filesystem on iOS devices is case sensitive, so it's quite possibly a case issue. (Mac OS X is generally case in-sensitive, hence you've not seen this issue in the simulator.)
因此,检查您是否使用相同的代码中的case作为文件名本身。
As such, check that you're using the same case in the code as the filename itself.
这篇关于无法加载从设备上运行的包中的nib引用的映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!