ヘルプ!iOS シミュレーターでサウンドを再生できますが、自分のデバイスでは再生できません! これが私のコードです(はい、オーディオファイルは指定された場所にあります。間違いなく動作します:
SystemSoundID hashtag;
NSString *path = [[NSBundle mainBundle] pathForResource:@"hashtag" ofType:@"wav"];
NSURL *pathURL = [NSURL fileURLWithPath:path];
AudioServicesCreateSystemSoundID((__bridge CFURLRef) pathURL, &hashtag);
AudioServicesPlaySystemSound(hashtag);