How to use xcassets image from a bundle inside xib - all from another app?

I have this scenario:


My app relies on a framework + bundle.

Bundle has xibs.

Classes for xibs reside in framework.

Their images reside in xcasset files of the framework project.


I can quite see the xibs + view controller classes rendering view controllers though they reside inside bundle & framework, respectively.

But images aren't coming where I placed them in xibs.


I have imported framework + bundle inside my app.

But how can I use images inside the framework project's xcasset?


How do I tell framework xibs to find images from framework xcassets (or any optional way) ?


[so far, xcasset file isn't part of the bundle despite I copy it in 'copy bundle resources' phase.

If I import all images into my app's xcasset - even that won't work because app expects them inside the imported bundle, not the main bundle.]

Hi vividcode,


I am in the exact same situation, did you find a solution after all?

Actually in my case the framework bundle contains the Assets.car file but when xib are loaded the ressources are not found.


error : cannot load image referenced from a nib in the bundle with identifier "(null)"


Thanks


Nicolas

Hi vividcode and nico67000,


Take a look at this post http://stackoverflow.com/questions/22869670/how-can-i-load-an-image-from-assets-car-compiled-version-of-xcassets-within-an

Maybe it will help you.


Cheers,

Armen

How to use xcassets image from a bundle inside xib - all from another app?
 
 
Q