Zubora Code

Recording iOS Simulator Video with Audio Using QuickTime Player

"I will provide a brief explanation of how to record iOS Simulator video with audio using QuickTime Player.

Published: 7 September, 2023
Revised: 7 September, 2023

Recording iOS Simulator Video with Audio Using QuickTime Player

To record video from the iOS Simulator along with audio, you can follow these steps. While it's straightforward to record the video only using the terminal command below:

$ xcrun simctl io booted recordVideo <movie_title>.mov  

But it seems that recording audio simultaneously is not supported.

https://stackoverflow.com/questions/54141721/record-ios-simulator-video-and-simulator-audio-in-background

Therefore, we will use QuickTime Player and Background Music for recording. Be cautious while configuring these settings to ensure everything works smoothly.

Installing Background Music

There are several methods, but using Homebrew is the easiest:

$ brew install --cask background-music

Configuration

  1. Ensure that Background Music is running.
  2. Set Background Music's Output Device to your Mac's speakers (e.g., Mac mini Speakers).
  3. In System Preferences > Sound, set Input and Output to Background Music.
  4. In the iOS Simulator's I/O settings, set Audio Input and Audio Output to Background Music.
  5. In QuickTime Player's options, select Background Music as the microphone source (not Background Music (UI Sounds)).


1. Ensure that Background Music is running.

Remember to keep Background Music running. An icon should appear in the upper right corner. I once struggled to record audio because I forgot to start Background Music.

2. Set Background Music's Output Device to your Mac's speakers(e.g., Mac mini Speakers).

Ensure that Background Music's Output Device is set to your Mac's speakers. You can verify this by clicking the icon, which should display the Output Device as Mac.

3. In System Preferences > Sound, set Input and Output to Background Music.

4. In the iOS Simulator's I/O settings, set Audio Input and Audio Output to Background Music.

This step can also be a tricky point.


5. In QuickTime Player's options, select Background Music as the microphone source (not Background Music (UI Sounds)).

When initiating a new screen recording in QuickTime Player, you'll have the option to choose the microphone source. Select Background Music here (not Background Music (UI Sounds)).



With these settings in place, you'll be able to record your screen along with audio!

Recorded Video

Here's a video of my recently released first Flutter app.


This way, you won't forget how to record your screen with audio in the future!

Toshimitsu Kugimoto

Software Engineer

Specializing in backend and web frontend development for payment and media at work, the go-to languages for these tasks include Java and TypeScript. Additionally, currently exploring Flutter app development as a side project.