Skip to content

Instantly share code, notes, and snippets.

@samuelmeuli
Last active March 2, 2020 03:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuelmeuli/163f6e1a4145242574aed119d9e51bd8 to your computer and use it in GitHub Desktop.
Save samuelmeuli/163f6e1a4145242574aed119d9e51bd8 to your computer and use it in GitHub Desktop.
Remove Xcode file headers
# Will modify the contents of the Xcode package. Script therefore needs to be run after every update.
# If built-in templates aren't modified and custom templates are created instead, this leads to duplicate
# templates in the Xcode UI
find /Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File\ Templates/Source/* -type f -exec sudo perl -0777 -i -pe "s/\/\/___FILEHEADER___\n\n//igs" {} ';'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment