This repository contains useful Xcode templates to simplify new projects up and running.
Clone this project and navigate to it via terminal. Run install script:
chmod +x install.sh
./install.sh
This script will copy the templates to ~/Library/Developer/Xcode/Templates/Project Templates/Private where Xcode will be able to find them.
This template is a copy of default Single View App Xcode template with several handy additions:
.gitignorefile;- SwiftLint build phase integration and configuration file;
- SwiftFormat build phase integration;
- R.Swift build phase integration;
Podfileto install all the tools mentioned above.
- Open Xcode and create new project, choose Single View App With Code Tools from the wizard (at the Private section);

- Configure project name and other parameters as usual;
- Close project, navigate to it via terminal and run
pod installto install the dependencies; - Open the generated workspace, navigate to Build Phases of your project's main target and move the SwiftFormat, SwiftLint, and R.Swift script phases above the compile phase (exactly that order). We have to make this step manually due to limitations of Xcode templates;

- Build project and have fun!
Developing Xcode templates without documentation is hard, so kudos to Vokal's templates repository where I was able to find some answers to my questions.