Recording simulator's screen with sound

I am developing an application with React Native, and I need to take screen recordings in the simulators I open with XCode. I am using the recording feature available in the simulators, but it does not capture the sound coming from the simulator and records silently. How can I enable it?

Recording simulator's screen with sound
 
 
Q