Skip to content

Instantly share code, notes, and snippets.

@firesofmay
Last active December 15, 2015 03:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save firesofmay/5194901 to your computer and use it in GitHub Desktop.
Save firesofmay/5194901 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Imports pictures into all iOS simulators.
path_to_pic="src/ios/pictures/"
mkdir -p /Users/$(whoami)/Library/Application\ Support/iPhone\ Simulator/{5.0,5.1,6.0,6.1}/Media/DCIM/100APPLE/
find ~/Library/Application\ Support/iPhone\ Simulator/ -type d -name '100APPLE' -exec cp /Users/$(whoami)/$path_to_pic/* {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment