AudioServicesPlaySystemSound在模拟器xCode 6 GM上静音

我在模拟器上运行下面的代码,我没有得到任何声音:

NSString *soundPath = [[NSBundle mainBundle] pathForResource:@"pageflip" ofType:@"mp3"]; NSURL *soundUrl = [NSURL fileURLWithPath:soundPath]; AudioServicesCreateSystemSoundID((__bridge CFURLRef) soundUrl, &_soundEffect); AudioServicesPlaySystemSound(_soundEffect); 

该代码已经在xCode 5和iOS 7上成功testing。根据需要导入库。

我已经logging了soundPath,并且它返回了文件系统上的正确位置。

有没有人遇到类似的问题?

这是模拟器的问题。 在设备上,它会按预期工作。

我现在有类似的问题。 我的AudioServicesPlaySystemSound正在工作,直到XCode更新到6.0.1。 人们可以假设在更新中有些东西被破坏了。