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.
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.
You can use defaults write com.apple.iphonesimulator ShowSingleTouches 1
, or go to "Simulator Settings" -> "Visual indicators" -> Check the "Show single touches".
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
In the input source, choose "Window Capture" method, and select "[Simulator] iPhone xx" as the window.
That's it.
I found that the file output quality is good, and the file size is small to be shared with other teams.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With