I'm having some troubles with the bundle and somehow I can't save images from bundle to docs directory any more. Now I've got this error before building:
The document NSBundle.h could no be saved
It apparently compiles well. This is the kind of code I'm using:
//Get every name from plist array and append it to the full path
for( NSString *aName in namesPackage ) {
bundlePath = [[NSBundle mainBundle] pathForResource:aName ofType:@"png"];
if([fileManager fileExistsAtPath:bundlePath])NSLog(@"it exists in bundle: %@",bundlePath);
imagePath = [NSString stringWithFormat:@"%@/%@/%@",DOCUMENTS_FOLDER,package,aName];
[fileManager copyItemAtPath:bundlePath toPath:imagePath error:&anError];
if(anError) NSLog([anError description]);
}
Thanks for your help in advance.