I have images "hit_circle_0.png" through "hit_circle_19.png" in my resources folder but for some reason this code never passes the test for "found" The annoying thing is that I have the exact same function working in another method just below it. And the files are there in "Copy Bundle Resources"
NSMutableArray *hitCircle = [[NSMutableArray alloc]init];
for (int i = 0; i < 20; i++) {
NSString *name = [NSString stringWithFormat:@"hit_circle_%i", i];
NSString *filePath= [[NSBundle mainBundle] pathForResource:name ofType:@"png"];
if ([[NSFileManager defaultManager] fileExistsAtPath:filePath]){
NSLog(@"file %@ was found", filePath);
} else{
NSLog(@"%@ not found", filePath);
}
}