Last active
March 2, 2020 03:21
-
-
Save samuelmeuli/163f6e1a4145242574aed119d9e51bd8 to your computer and use it in GitHub Desktop.
Remove Xcode file headers
This file contains 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
# 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