如何在 iPhone 模拟器中调试 Webchat

How to debug Webchat in iPhone Simulator

我在 iPhone(麦克风工作)中遇到了音频无法在语音机器人中播放的问题,并试图在 Mac 中的 iPhone 模拟器中调试相同的问题(因为我无权访问真实设备)。但是,在模拟器中,sample bot 似乎不起作用。这是屏幕截图:

我应该如何调试这个问题?

您需要直接在 iPhone 上进行测试。根据 iPhone Simulator docs:

Hardware Differences

Though most of the functionality of devices can be simulated in Simulator, some hardware features must be tested directly on a device. The hardware features that are not simulated as of iOS 8.2 are:

  • Motion support (accelerometer and gyroscope) are unsupported.
  • Audio and video input (camera and microphone) are unsupported.