I\'m trying to get an audio file playing in my iOS app. This is my current code
NSString *soundFilePath = [NSString stringWithFormat:@\"%@/test.m4a\", [[NSBu
You need to store a strong reference to 'AVAudioPlayer'
@property (strong) AVAudioPlayer *audioPlayer;
And if you are sure that your audio file is in following Bundle Resources, it should play.
Project>Build Phases>Copy