Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Simulator screen recording with a Touch Indicator

Is there any way to record the iOS Simulator Screen with a Touch Indicator using xcrun simctl io booted recordVideo --codec=h264 --force ~/Desktop/Record.mp4?

Note: I’ve tried with defaults write com.apple.iphonesimulator ShowSingleTouches 1 but the Touch Indicator doesn't include in the recorded video.

like image 409
Huy Duong Avatar asked Sep 07 '25 14:09

Huy Duong


2 Answers

There's no way to do it using xcrun. But we can screen record in iOS simulator with a Touch Indicator with another tool. It's not built-in in the Xcode, but it's free, easy, and available in macOS.

  1. Show the touch indicators

You can use defaults write com.apple.iphonesimulator ShowSingleTouches 1, or go to "Simulator Settings" -> "Visual indicators" -> Check the "Show single touches".

1-simulator-settings

  1. Download and install OBS

Open Broadcaster Software (OBS) Studio is free, open source, and popular app for screen recording. Please visit the site to download it https://obsproject.com

  1. Configure OBS

In the input source, choose "Window Capture" method, and select "[Simulator] iPhone xx" as the window.

2-screen-capture

  1. Start Recording

That's it.

3-start-recording

I found that the file output quality is good, and the file size is small to be shared with other teams.

like image 121
aldok Avatar answered Sep 10 '25 02:09

aldok


You can record with the screen recorder built into the macOS (the one that's launched with Cmd+Shift+5). It records touch indicators along with the simulator's screen.

like image 37
voiger Avatar answered Sep 10 '25 02:09

voiger