简体   繁体   中英

Record IOS Simulator video and simulator audio in background

I need to record 100 separate videos of my simulator which is about 40 hours of high quality. I want to record video of Xcode simulator and system audio in the background. Since I need to use my computer at the same time I don't want to use tools like Camtasia or quick time. I am wondering if this is achievable. If so this will save my one month.

You can achieve this by following.

1.In simulator Menu Choose Hardware > Audio Input > System to use the same audio input as the Mac.

2.Open Terminal and navigate to the directory where you want to save video.

Run Command : xcrun simctl io booted recordVideo <filename>.<extension>

It will start recording.To finish Press Control-C . Video will save on current directory.

In the latest version of Xcode Simulators "Scroll over the Save Screen Button and Hold the OPTION key , gives the screen record option. 在此处输入图片说明

Save screen button will change to record video button

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM