Created
May 12, 2020 13:04
-
-
Save prafullakumar/24e08e6ec81eb16564c702100518057a to your computer and use it in GitHub Desktop.
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/bash | |
#Set the name of the ram disk | |
RAMDISK = "xcodeDeriveData" | |
#Set the size of the ram disk, here is 2048 MB | |
SIZE = 2048 | |
#space allocated to the xcodeDeriveData | |
diskutil erasevolume HFS + $RAMDISK `hdiutil attach -nomount ram://$[SIZE * 2048]` | |
#Open the metadata index. This is necessary if you use Xcode's internal debugging tools. Because debugging tools use metadata indexes to query symbolic links | |
mdutil -i on /Volumes/$RAMDISK |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment