声音不工作在iPhone模拟器? [英] Sound not working in iPhone Simulator?

查看:235
本文介绍了声音不工作在iPhone模拟器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不知怎的,我的iPhone模拟器无法播放声音。首先,我正在使用 AudioServicesPlaySystemSound()停止工作..我花了一个时间调试这个,但声音仍然工作在iPhone上,当我运行应用程序设备。我在其他iPhone应用程序(例如Crash Landing应用程序)中获得了相同的结果。

Somehow my iPhone Simulator is unable to play sounds. First an app I'm working on using AudioServicesPlaySystemSound() stopped working.. I spent a while debugging this but sound is still working on the iPhone when I run the app on the device. I get the same results with other iPhone apps such as the sample Crash Landing app.

我在模拟器或Xcode偏好设置中找不到声音设置。我已尝试通过重置内容和设置菜单项重置模拟器。

I can't find a sound setting anywhere in the simulator or Xcode preferences. I've tried resetting the simulator through "Reset Content and Settings" menu item to no avail.

推荐答案

到系统偏好设置>声音>音效,然后取消选中并重新选中播放用户界面音效。

On your Mac, go to System Preferences > Sound > Sound Effects and then uncheck and recheck "Play user interface sound effects".

您需要重新激活系统声音, 页面。

You need to re-activate your system sounds, see the end of this page.

这篇关于声音不工作在iPhone模拟器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆