Skip to content

Instantly share code, notes, and snippets.

@surendharreddy
Last active September 19, 2018 04:59
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save surendharreddy/5c8d2057ac05e7cea215f829c86bebb6 to your computer and use it in GitHub Desktop.
Mobile Development Tips

iOS

Record iPhone Simulator

  • Run the following command to record iPhone Simulator xcrun simctl io booted recordVideo video-name.mp4

Android

Taking screen shots on Geny motion

  • 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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment