Xcode - bootstraponline/meta GitHub Wiki
Toggle active versions
sudo xcode-select -switch /Applications/Xcode.app/
sudo xcode-select -switch /Applications/Xcode_10.1.app/Contents/Developer
xcode-select -p
Remove annoying templates.
#!/bin/bash
# Usage:
# $ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates
# $ bash ~/remove-boilerplate-comments-from-xcode-templates.sh
# Repeat for /Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates
#
# https://gist.github.com/mx4492/81da9f3c363bc1c44f4e
find -E . -type f \
\( -regex '.*\.[chm]' -or -regex '.*\.swift' \) \
-exec sed -i '' '1,/^$/d' '{}' ';'