Skip to content

Instantly share code, notes, and snippets.

@NorseGaud
Created May 5, 2023 00:24
Show Gist options
  • Save NorseGaud/a2cb6851252c90cc3802a63c6c532216 to your computer and use it in GitHub Desktop.
Save NorseGaud/a2cb6851252c90cc3802a63c6c532216 to your computer and use it in GitHub Desktop.
xcode preparation commands
XCODE_DESTINATION="/Applications"
sudo /usr/sbin/dseditgroup -o edit -a everyone -t group _developer
sudo xcode-select -s ${XCODE_DESTINATION}/Xcode.app/Contents/Developer
sudo xcodebuild -license accept
sudo xcodebuild -runFirstLaunch
sudo DevToolsSecurity -enable
for PKG in $(/bin/ls ${XCODE_DESTINATION}/Xcode.app/Contents/Resources/Packages/*.pkg); do
sudo /usr/sbin/installer -pkg "$PKG" -target /
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment