Created
June 9, 2014 17:04
-
-
Save n8gray/1f1b443b60c59e2f02e4 to your computer and use it in GitHub Desktop.
Xcode 6: Make a symlink to each iOS simulator's data directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# Makes a symbolic link in your current directory to each iPhone simulator's data directory | |
devices=~/Library/Developer/CoreSimulator/Devices | |
plb=/usr/libexec/PlistBuddy | |
for f in $devices/*; do | |
simname=`$plb $f/device.plist -c "Print :name"` | |
ln -s $f/data ./$simname | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment