This is just installation guide, for detailed description check wiki.
Installation
Prepare environment
To use project template you will need Ruby Bundler and Carthage.
We recommend always running on latest Carthage version. Carthage could be installed by running
brew update
brew install carthage
Bundler should be a part of your Ruby installation. We recommend ruby version greater than 2.4.x. If you don't have bundler than it can be installed by running
sudo gem install bundler
Download template
If you have your environment ready, download content of this repo as ZIP archive and unpack to folder where you want to have your new project (recommended).
...or you can do standard git clone of course
git clone https://github.com/AckeeCZ/iOS-MVVM-ProjectTemplate.git
In that case don't forget to remove .git
directory after clone, otherwise you will have whole template history in your new repository. I guess you don't want that.
rm -rf .git
Project setup
- In the project root folder call
bundle install
This will install all needed gems to run the skeleton and maintain their versions appropriately.
- Rename template
./rename.swift name_of_your_new_project
- Run carthage
carthage bootstrap --platform ios --cache-builds
- Generate the project with tuist
Install it if necessary:
bash <(curl -Ls https://install.tuist.io)
And then run:
tuist up
tuist generate
Now your new project is ready to use
In the first place check FirebaseAppDelegate.swift
and uncomment cofiguration code, it's easy to forget that and pretty hard to find afterwards