After creating the template file in the code folder, you should remove the template reference, because Xcode does not support automatic path updates.
cd Base-Template-master
sudo swift install.swift
The default path of template in: /Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File Templates
Warning: If you reinstall or update Xcode, you need to reinstall the template
Copy only template ex: Network.xctemplate file to patch: ~/Library/Developer/Xcode/Templates/
BaseTemplate is released under the MIT license. See LICENSE for details.