Two other helpful tips:
First, in order to see the contents of a package in Xcode, you need to set its type in the File Inspector utility panel, in the "Application Bundle". You still cannot copy using Xcode. You will need to use Terminal, but Xcode will immediately update it.
Secondly, to use the resources in the package here is a useful snippet ...
NSString *bundlePath = [[NSBundle mainBundle] pathForResource:@"AquarianHarp" ofType:@"bundle"]; NSString *imageName = [[NSBundle bundleWithPath:bundlePath] pathForResource:@"trebleclef2" ofType:@"png"]; UIImage *myImage = [[UIImage alloc] initWithContentsOfFile:imageName];
As mentioned in my comment above, you really do not need to download the package (you cannot, because it is not executable), and ofType must match the case of your actual file for it to work on the device. This will work in the simulator, so do not be fooled by this red herring!
Finally, you don’t need to place your resources in the “Resources” subfolder inside the package. It seems you can use a custom layout, but the performance implications may not be known.
Hari Karam Singh Nov 19 '11 at 12:50 2011-11-19 12:50
source share