public
Last active

  • Download Gist
importpic.sh
Shell
1 2 3 4 5 6 7 8
#!/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/* {} \;

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.