Skip to content
This repository was archived by the owner on Feb 16, 2024. It is now read-only.
/ xcode-templates Public archive

Useful Xcode templates to simplify new projects up and running

Notifications You must be signed in to change notification settings

movch/xcode-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xcode Templates

This repository contains useful Xcode templates to simplify new projects up and running.

Installation

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.

Templates usage

Single View App With Code Tools

This template is a copy of default Single View App Xcode template with several handy additions:

  • .gitignore file;
  • SwiftLint build phase integration and configuration file;
  • SwiftFormat build phase integration;
  • R.Swift build phase integration;
  • Podfile to install all the tools mentioned above.

Up and running

  1. Open Xcode and create new project, choose Single View App With Code Tools from the wizard (at the Private section); Choosing project template
  2. Configure project name and other parameters as usual;
  3. Close project, navigate to it via terminal and run pod install to install the dependencies;
  4. 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 phases configuration
  5. Build project and have fun!

References

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.

About

Useful Xcode templates to simplify new projects up and running

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages