We're getting these kind of error messages:
Could not load the "iconStatus" image referenced from a nib in the bundle with identifier "com.company.OurResourceBundle".
Basically, we put a bunch of images in the xcassets folder ( which works for non-bundle loaded cases ). The xcassets and nib files are packed into a resource bundle.
When the app launches,
- uiimageview in the nib file cannot load any images with the above error message.
- [UIImage imageNamed:@"OurResourceBundle.bundle/iconStatus"] returns nil
The question is related to "How can I load an image from Assets.car (compiled version of xcassets) within an NSBundle?", but we don't use CocoaPods.
*.car
file? From my short experience all*.xcassets
images just get copied (with a proper name) flat inside the*.app
directory. – Edmondedmonda.app
folder). – EdmondedmondaiOS Deployment Target
to iOS versions earlier than 7.0, thexcassets
file will not be compiled to.car
. I tested it and if it doesn't hurt for you to change youriOS Deployment Target
to iOS 6, this might be a solution. – Wangle