次のコードが出力The operation couldn’t be completed. (Cocoa error 256.)
されており、ファイル名 NSArray は null/空です。このフォルダにはファイルがあるはずですが、何が壊れているのでしょうか?
NSError *error;
NSFileManager *fm = [NSFileManager defaultManager];
filenames = [fm contentsOfDirectoryAtPath:[[NSBundle mainBundle] pathForResource:@"files" ofType:nil] error:&error];
NSLog(@"%@", [error localizedDescription]);
編集
[[NSBundle mainBundle] pathForResource:@"files" ofType:nil] が何らかの理由で null を返す