Before loading resources with podspec:
s.resources = ["MyFramework/Resources/**/*.{xib, png, jpeg, jpg}"]
Now I tried to do the same with the following:
s.resource_bundles = {'Resources' => ['MyFramework/Resources/**/*.{xib, png, jpeg, jpg}']}
They seem to be copied since I can find them under:
Pods\Development Pods\MyFramework\Resources
But when I try to download them:
UIImage *testImage = [UIImage imageNamed:@"testImage.jpeg"];
testImage always nil.
I also tried to find out if there was any package available, so I would need to load the image from the created package, but:
NSArray *bundles = [[NSBundle mainBundle] pathsForResourcesOfType:@"bundle" inDirectory:nil];
It was revealed that through Cocoapods not a single package was created.
How can I access these resources?
source share