Git Product home page Git Product logo

xcodetemplatehelper's Introduction

Xcode Template Helper

Install Xcode Template with Ease.

How to Install

1. Using script (strongly recommend)

  • to install in User Custom Path
swift install_template.swift
  • to install in Xcode application Path
sudo swift install_template.swift
  • ScreenShot
    install via script

2. Manual

Copy & Paste command, or followed guide bellow.
And don't forget to replace [TemplateName] with your real template name.

[ File Template ]

  • to install in User Custom Path.
mkdir -p $HOME"/Library/Developer/Xcode/Templates/File Templates/Custom/[TemplateName].xctemplate/" && \
cp -R ./[TemplateName].xctemplate $HOME"/Library/Developer/Xcode/Templates/File Templates/Custom/"
  • to install in Xcode Application Path
tempDir=`xcode-select -p`"/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/File Templates/Source/" && \
sudo mkdir -p $tempDir/[TemplateName].xctemplate/ && \
sudo cp -R ./[TemplateName].xctemplate $tempDir

[ Project Template ]

  • to install in User Custom Path.
mkdir -p $HOME"/Library/Developer/Xcode/Templates/Project Templates/Custom/[TemplateName].xctemplate/" && \
cp -R ./[TemplateName].xctemplate $HOME"/Library/Developer/Xcode/Templates/Project Templates/Custom/"
  • to install in Xcode Application Path
tempDir=`xcode-select -p`"/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/Project Templates/iOS/Application" && \
sudo mkdir -p $tempDir/[TemplateName].xctemplate/ && \
sudo cp -R ./[TemplateName].xctemplate $tempDir

Done. Now you can find your custom template in Xcode.
Congratulations! ๐ŸŽ‰๐ŸŽ‰

Template Usage

1. File Template - ViperModule Template

Usage

2. Project Template - TestApplication Template

Usage

Create Your Own Template

Do you want to create custom template? Do this.

sudo swift install_template.swift -g file
sudo swift install_template.swift -g project

These commands provide base template you can start with.

  1. Get base template
  2. Edit
  3. Install

๐Ÿ‘Œ๐Ÿ‘Œ

โ€ป Base file template is equal to Xcode Swift template.
โ€ป Base project template is eqaul to Xcode Single View Application template.

โš ๏ธ Caution

You must change Identifier of your custom project template before install it to custom or xcode application path

Remove Custom Template

1. Using script

Add sudo like install_template if you want to remove a template within xcode application path.

swift remove_template.swift
  • ScreenShot
    remove via script

2. Manual

Just delete your custom template from the path that you have installed

TODOs

  • Documentation for TemplateInfo.plist
  • Add more templates

Contributing

Issues, Pull Requests and adding your custom template are always welcome.

License

Xcode Template Helper is under the MIT license. See LICENSE for details.

xcodetemplatehelper's People

Contributors

giftbott avatar

Watchers

James Cloos avatar Matthew Crenshaw avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.