Before I was loading me resources with the podspec:
s.resources = ["MyFramework/Resources/**/*.{xib, png, jpeg, jpg}"]
now I tried to accomplish the same with the following:
s.resource_bundles = {'Resources' => ['MyFramework/Resources/**/*.{xib, png, jpeg, jpg}']}
They appear to be copied as I can find them under:
Pods\Development Pods\MyFramework\Resources
But when I try to load them:
UIImage *testImage = [UIImage imageNamed:@"testImage.jpeg"];
the testImage
is always nil.
I also tried to find out if there was somehow a bundle accessible so I would need to load an image from a created bundle but:
NSArray *bundles = [[NSBundle mainBundle] pathsForResourcesOfType:@"bundle" inDirectory:nil];
Revealed that no bundle was created through Cocoapods.
How exactly can I access those resources?