- Run the following command to record iPhone Simulator
xcrun simctl io booted recordVideo video-name.mp4
- Run the following command on mac to generate screen shots
'/Applications/Genymotion.app/Contents/MacOS/tools/adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > ~/Desktop/Android_Screenshot_$(date "+%Y-%m-%d-%H-%M"-%S).png
- Add following alias to Zshell or Bash to save time
alias android:capture='/Applications/Genymotion.app/Contents/MacOS/tools/adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > ~/Desktop/Android_Screenshot_$(date "+%Y-%m-%d-%H-%M"-%S).png'