NSData dataWithContentsOfFile renvoyant null

Je suis en train de récupérer un JSON fichier qui existe dans mon xcode ressources à l'aide de ce code

-(void)readJsonFiles
{
    NSString *str=[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"classes.json"];
    NSLog(@"Path: %@", str);
    NSData *fileData = [NSData dataWithContentsOfFile:str];
    NSLog(@"Data: %@", fileData);
    SBJsonParser *parser = [[SBJsonParser alloc] init] ;
    NSDictionary *jsonObject = [parser objectWithData:fileData];
    NSLog(@"%@", jsonObject);
}

chemin de retour moi ce lien de chemin d'accès au fichier

/Users/astutesol/Library/Application Support/iPhone Simulator/6.0/Applications/A4E1145C-500C-4570-AF31-9E614FDEADE4/The Gym Factory.app/classes.json

mais lorsque je me connecte fileData il m'a null . Je ne sais pas où je fais erreur.

source d'informationauteur user3129278