I found that using AVAudioFoundation should be the easiest way to play an mp3 on objective-c, but I don't know what I'm doing wrong here. No sound on either the device or the simulator. I imported the framework and all the other "normal" things, but it just keep not playing. What is wrong in this code?
NSString *path = [[NSBundle mainBundle] pathForResource:@"DuomoDiFirenze" ofType:@"mp3"];
AVAudioPlayer *theAudio = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:NULL];
[theAudio prepareToPlay];
[theAudio play];