バンドルに問題があり、バンドルから docs ディレクトリに画像を保存できなくなりました。ビルドする前にこのエラーが発生しました:
ドキュメント NSBundle.h を保存できませんでした
それは明らかにうまくコンパイルされます。これは私が使用しているコードの種類です:
//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]);
}
事前にご協力いただきありがとうございます。