Created
August 1, 2014 13:21
-
-
Save timsutton/5ba2e65cd89f4ed0f637 to your computer and use it in GitHub Desktop.
Xcode postinstall script
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/sh | |
# Adjust security policies to allow debugging by memebers of admin and _developer groups | |
/usr/sbin/DevToolsSecurity -enable | |
# Add everyone to _developer | |
/usr/sbin/dseditgroup -o edit -t group -a everyone _developer | |
# Accept the Xcode EULA | |
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -license accept | |
# Install included support packages | |
for PKG in $(find /Applications/Xcode.app/Contents/Resources/Packages -name "*.pkg"); do | |
/usr/sbin/installer -dumplog -verbose -pkg "${PKG}" -target / | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment