I am creating a framework in which it uses some image files and files .xib. Now I create a structure and a separate package and distribute these .frameworkand .bundleother developers. The new thing I need to do is distribute this structure and combine it together. Is there a way to put the framework and package together and distribute as a single package.
To create the framework, I use the shell script inside, it creates a file .afor the simulator and the device, and then combines it together with the tool lipo.
I need to access these resources from these resources from the frame code, as well as from the external code of the frame. Right now I am accessing resources like:
NSURL *bundleURL = [[NSBundle mainBundle] URLForResource:@"MyFrameworkBundle" withExtension:@"bundle"];
NSBundle *resourceBundle = [NSBundle bundleWithURL:bundleURL];
NSString *path = [resourceBundle pathForResource:@"file" ofType:@"extension"];
How to handle this? Is this a good method of storing resources within a framework?
source
share