👩‍💻xcode-template makes it easy to create a template and share with your project
You can install using Homebrew.
$ brew install ngtk/tools/xcode-template
Or you can download from GitHub releases.
If you want to create a new template, You can do it with subcommand generate
or g
.
$ xctemplate g "UIViewController"
If you want to use from Xcode "File Template Library". You can do it with subcommand link
.
$ xctemplate link
Been written in go, you can go get github.com/ngtk/xcode-template
and change command by editing xctemplate.go
.
If you want to release new version, You have to do below:
- Bump version
$ goxc bump
to bump version in.goxc.json
- Bump
app.Version
inxctemplate/xctemplate.go
- Build and Release to GitHub
$ goxc
- Enable to download with Homebrew
- Bump version in Homebrew formula
- Change also
sha256
to result ofgsha256sum xctemplate_{VERSION}_darwin_386.zip