Help! I can play sound on the iOS simulator, but not my device! Here is my code (yes, the audio file is in the specified location, it definitely works:
SystemSoundID hashtag;
NSString *path = [[NSBundle mainBundle] pathForResource:@"hashtag" ofType:@"wav"];
NSURL *pathURL = [NSURL fileURLWithPath:path];
AudioServicesCreateSystemSoundID((__bridge CFURLRef) pathURL, &hashtag);
AudioServicesPlaySystemSound(hashtag);